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.
22 lines
403 B
22 lines
403 B
<?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();
|
|
}
|
|
}
|
|
|