1<?php 2 3namespace DeepCopy\Filter\Doctrine; 4 5use DeepCopy\Filter\Filter; 6 7/** 8 * @final 9 */ 10class DoctrineProxyFilter implements Filter 11{ 12 /** 13 * Triggers the magic method __load() on a Doctrine Proxy class to load the 14 * actual entity from the database. 15 * 16 * {@inheritdoc} 17 */ 18 public function apply($object, $property, $objectCopier) 19 { 20 $object->__load(); 21 } 22} 23