cms icon indicating copy to clipboard operation
cms copied to clipboard

The Entity - a higher-level base class

Open sergeyklay opened this issue 11 years ago • 1 comments

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)

sergeyklay avatar Aug 09 '13 14:08 sergeyklay

Also seems this is useful for #416

sergeyklay avatar Aug 09 '13 14:08 sergeyklay