Ejemplo n.º 1
0
 protected function shouldSkip($name)
 {
     if (parent::shouldSkip($name)) {
         return TRUE;
     }
     if (!$this->metadata->hasAssociation($name)) {
         return FALSE;
     }
     $metadata = $this->metadata->getAssociationMapping($name);
     if ($metadata['type'] === ClassMetadata::MANY_TO_ONE && $this->parent && $this->parent instanceof ContainerBuilder && $this->parent->getMetadata()->name === $metadata['targetEntity'] && !empty($metadata['inversedBy']) && $metadata['inversedBy'] === $this->name) {
         return TRUE;
         //back referencing
     }
     return FALSE;
 }
Ejemplo n.º 2
0
 public function __construct(ClassMetadata $metadata, Container $container, Configuration $configuration)
 {
     parent::__construct($metadata, $container, $configuration);
     $this->onAttached($this);
 }