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());
 }