cms
cms copied to clipboard
The Entity - a higher-level base class
I propose to create the Entity
, a higher-level base class from which extends all other classes. Class that will encapsulate a factory, through the factory interface. It might look like this:
\Entity implements Factory
...
\Entity\Model
...
\Entity\Model\ORM
\Entity\Model\Somemodel1
...
\Entity\Model\ORM\Core
\Entity\Model\ORM\MPTT
\Entity\Model\ORM\Versioned
...
\Entity\Model\ORM\Core\Somemodel2
\Entity\Model\ORM\MPTT\Somemodel3
\Entity\Model\ORM\Versioned\Somemodel4
\Entity\Model\ORM\Versioned\Post
...
\Entity\Model\ORM\Versioned\Post\Somemodel5
...
Entity may contain a factory method (described in #516, or something like that)
Also seems this is useful for #416