You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someone wants to modify an object partially, he currently needs to write a class which implements ObjectConstructorInterface. Maybe we can provide an implementation by default.
classDoctrineObjectConstructorextendsUnserializeObjectConstructor
{
private$em;
publicfunctionconstruct($metadata, $class, $data, $visitor)
{
if ($this->em->isTransient($class)) {
returnparent::construct(/* ... */);
}
// do some query and return the object
}
}
If someone wants to modify an object partially, he currently needs to write a class which implements
ObjectConstructorInterface
. Maybe we can provide an implementation by default.see #111
The text was updated successfully, but these errors were encountered: