Extracts data using Doctrine MongoDB ODM metadata.
class ApiPlatform\Doctrine\Odm\PropertyInfo\DoctrineExtractor implements Symfony\Component\PropertyInfo\PropertyListExtractorInterface, Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface, Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface
{
public __construct(Doctrine\Persistence\ObjectManager $objectManager)
public getProperties($class, array $context): array<int, string>
public getTypes($class, $property, array $context): array<int, Symfony\Component\PropertyInfo\Type>
public isReadable($class, $property, array $context): bool
public isWritable($class, $property, array $context): bool
}
public __construct(Doctrine\Persistence\ObjectManager $objectManager)
objectManager | Doctrine\Persistence\ObjectManager |
Gets the list of properties available for the given class.
public getProperties($class, array $context): array<int, string>
class | ||
context | array |
array<int, string>
Gets types of a property.
public getTypes($class, $property, array $context): array<int, Symfony\Component\PropertyInfo\Type>
class | ||
property | ||
context | array |
array<int, Symfony\Component\PropertyInfo\Type>
Is the property readable?
public isReadable($class, $property, array $context): bool
class | ||
property | ||
context | array |
bool
Is the property writable?
public isWritable($class, $property, array $context): bool
class | ||
property | ||
context | array |
bool
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