mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 14:27:28 +01:00
41 lines
687 B
PHP
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);
|
|
}
|
|
}
|