mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
37 lines
609 B
PHP
37 lines
609 B
PHP
<?php
|
|
|
|
namespace Infinito\Entity;
|
|
|
|
use Infinito\Attribut\IdAttribut;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Infinito\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()
|
|
{
|
|
$this->version = 0;
|
|
}
|
|
}
|