src/FoundationBundle/ORM/AbstractEntity.php
<?php
namespace EM\FoundationBundle\ORM;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;
/**
* @since 8.0
*/
abstract class AbstractEntity implements IdentifiableInterface
{
/**
* @ORM\Id
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="IDENTITY")
*
* @JMS\Type("integer")
*
* @var int
*/
protected $id;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
}