Example #1
0
 /**
  * Constructor.
  *
  * @param ClassMetadata $metadata
  * @param GraphWalker   $graphWalker
  * @param object        $mergeFrom
  * @param object        $mergeTo
  */
 public function __construct(ClassMetadata $metadata, GraphWalker $graphWalker, $mergeFrom, $mergeTo)
 {
     $this->metadata = $metadata;
     $this->graphWalker = $graphWalker;
     $this->mergeFrom = $mergeFrom;
     $this->mergeTo = $mergeTo;
     $this->propertyAccessor = $graphWalker->getPropertyAccessorRegistry()->getPropertyAccessor($this->metadata->accessor);
 }
Example #2
0
 public function flushStack()
 {
     $this->graphWalker->flushStack();
 }