/** * 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 Composite and cannot be the tail', $path->getFullPath(), $path->getCurrentPath()); $vOwner = $this->getVirtualProperty($path->getNextChunk(), $owner); return $vOwner->getEntityProperty($path->peek()); }