infinito/application/src/Entity/AbstractEntity.php
2018-10-31 18:43:42 +01:00

41 lines
687 B
PHP

<?php
namespace App\Entity;
use App\Entity\Attribut\IdAttribut;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Attribut\VersionAttribut;
/**
* @author kevinfrantz
*/
abstract class AbstractEntity implements EntityInterface
{
use IdAttribut, VersionAttribut;
/**
* @ORM\Id()
* @ORM\GeneratedValue
* @ORM\Column(type="integer")(strategy="AUTO")
*
* @var int
*/
protected $id;
/**
* @version @ORM\Column(type="integer")
*
* @var int
*/
protected $version;
public function __construct()
{
}
public function __toString(): string
{
return __CLASS__.':'.spl_object_hash($this);
}
}