Optimized Entities

This commit is contained in:
Kevin Frantz 2019-01-13 15:25:54 +01:00
parent d01a5f2dbd
commit 73d2583846
4 changed files with 4 additions and 11 deletions

View File

@ -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);
}
} }

View File

@ -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

View File

@ -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;
} }

View File

@ -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")