Guides
Tutorials
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
}
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)
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>
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>
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
public isReadable($class, $property, array $context): bool
class | ||
property | ||
context | array |
bool
Is the property writable?
public isWritable($class, $property, array $context): bool
public isWritable($class, $property, array $context): bool
class | ||
property | ||
context | array |
bool