Closed guillaumeoriol closed 12 years ago
Zend.php
class has been moved to the Zend
directory and renamed Persister.php
.proxyNamespace
option has been added to the persisterConfiguration
class has been written that is passed to that constructor.loadEntity
function no longer creates the entity instance but receives it as an argumentloadEntity
functions. But it is now mandatory to create an entity instance or a proxy instance for associations.__load
and __clone
functions have been changed to use the gateway instead of the persisterretrieve
function has been added to the gateway to encapsulate the logic that was previously in the Persister#retrieve
function.newProxyInstance
function has been added to the gateway that should be used by custom loadEntity
functions in case of associations.
At this time, the persister is passed to the proxy constructor to implement lazy loading. Instead, it should be the gateway.
It also mean the
Serquant\Persistence\Zend\Db\Table#loadEntity
method should be refactored to pass an entity in the arguments in case of refresh.