Optimized Entities

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

No files matched your search

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