Ejemplo n.º 1
0
 /**
  * Condition to check for rewrite
  *
  * @param \Includes\Decorator\DataStructure\Graph\Classes $node Current node
  *
  * @return boolean
  */
 protected function isEntityDecorator(\Includes\Decorator\DataStructure\Graph\Classes $node)
 {
     $result = false;
     $parent = static::getClassesTree()->find($node->getParentClass());
     while ($parent) {
         if ($parent->getTag('Entity')) {
             $result = true;
             break;
         }
         $parent = static::getClassesTree()->find($parent->getParentClass());
     }
     return $result;
 }