Helper trait regarding a property in an entity using the resource metadata.
trait ApiPlatform\Doctrine\Orm\PropertyHelperTrait
{
protected getManagerRegistry(): Doctrine\Persistence\ManagerRegistry
protected splitPropertyParts(string $property, string $resourceClass): array
protected getClassMetadata(string $resourceClass): Doctrine\Persistence\Mapping\ClassMetadata
protected addJoinsForNestedProperty(string $property, string $rootAlias, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $joinType): array
}
protected getManagerRegistry(): Doctrine\Persistence\ManagerRegistry
Doctrine\Persistence\ManagerRegistry
Splits the given property into parts.
protected splitPropertyParts(string $property, string $resourceClass): array
property | string | |
resourceClass | string |
array
Gets class metadata for the given resource.
protected getClassMetadata(string $resourceClass): Doctrine\Persistence\Mapping\ClassMetadata
resourceClass | string |
Doctrine\Persistence\Mapping\ClassMetadata
Adds the necessary joins for a nested property.
protected addJoinsForNestedProperty(string $property, string $rootAlias, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $joinType): array
property | string | |
rootAlias | string | |
queryBuilder | Doctrine\ORM\QueryBuilder | |
queryNameGenerator | `ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface` | |
resourceClass | string | |
joinType | string |
array
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more