Пример #1
0
 /**
  * Returns the entity property for the specified path
  * 
  * @return EntityProperty
  */
 function getEntityProperty(EntityPropertyPath $path, OrmProperty $owner)
 {
     Assert::isTrue($path->isEmpty(), 'dont know how to link PropertyPath %s: %s is the tail', $path->getFullPath(), $path->getCurrentPath());
     return new EntityProperty($path->eqb, $owner);
 }
 function getEntityProperty(EntityPropertyPath $path, OrmProperty $owner)
 {
     //		Assert::isFalse(
     //			$path->isEmpty(),
     //			'incomplete PropertyPath %s: %s is Association and cannot be the tail',
     //			$path->getFullPath(),
     //			$path->getCurrentPath()
     //		);
     if ($path->isEmpty()) {
         return new EntityProperty($path->getEntityQueryBuilder(), $owner);
     }
     $eqb = $path->getEntityQueryBuilder()->joinEncapsulant($path->getCurrentChunk());
     return $this->container->getLogicalSchema()->getEntityProperty($path->peek($eqb));
 }
 function getEntityProperty(EntityPropertyPath $path, OrmProperty $owner)
 {
     Assert::isFalse($path->isEmpty(), 'incomplete PropertyPath %s: %s is Composite and cannot be the tail', $path->getFullPath(), $path->getCurrentPath());
     $vOwner = $this->getVirtualProperty($path->getNextChunk(), $owner);
     return $vOwner->getEntityProperty($path->peek());
 }