mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 06:27:24 +01:00
Optimized Entities
This commit is contained in:
parent
d01a5f2dbd
commit
73d2583846
@ -33,9 +33,4 @@ abstract class AbstractEntity implements EntityInterface
|
|||||||
{
|
{
|
||||||
$this->version = 0;
|
$this->version = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __toString(): string
|
|
||||||
{
|
|
||||||
return __CLASS__.':'.spl_object_hash($this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
namespace App\Entity\Attribut;
|
namespace App\Entity\Attribut;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @todo Implement a trait for crud which substitute this one.
|
||||||
|
*
|
||||||
* @author kevinfrantz
|
* @author kevinfrantz
|
||||||
*/
|
*/
|
||||||
trait TypeAttribut
|
trait TypeAttribut
|
||||||
|
@ -10,10 +10,4 @@ use App\Entity\Attribut\IdAttributInterface;
|
|||||||
*/
|
*/
|
||||||
interface EntityInterface extends VersionAttributInterface, IdAttributInterface
|
interface EntityInterface extends VersionAttributInterface, IdAttributInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Allows easier debuging.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function __toString(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,8 @@ use App\Exception\NoValidChoiceException;
|
|||||||
use App\DBAL\Types\Meta\Right\CRUDType;
|
use App\DBAL\Types\Meta\Right\CRUDType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @todo Remove relation attribut!
|
||||||
|
*
|
||||||
* @author kevinfrantz
|
* @author kevinfrantz
|
||||||
* @ORM\Table(name="meta_right")
|
* @ORM\Table(name="meta_right")
|
||||||
* @ORM\Entity(repositoryClass="App\Repository\RightRepository")
|
* @ORM\Entity(repositoryClass="App\Repository\RightRepository")
|
||||||
|
Loading…
Reference in New Issue
Block a user