You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
403 B
23 lines
403 B
3 years ago
|
<?php
|
||
|
|
||
|
namespace DeepCopy\Filter\Doctrine;
|
||
|
|
||
|
use DeepCopy\Filter\Filter;
|
||
|
|
||
|
/**
|
||
|
* @final
|
||
|
*/
|
||
|
class DoctrineProxyFilter implements Filter
|
||
|
{
|
||
|
/**
|
||
|
* Triggers the magic method __load() on a Doctrine Proxy class to load the
|
||
|
* actual entity from the database.
|
||
|
*
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function apply($object, $property, $objectCopier)
|
||
|
{
|
||
|
$object->__load();
|
||
|
}
|
||
|
}
|