Api Platform conference
Register now
References DoctrineExtractor
API Platform Conference
September 19-20, 2024 | Lille & online

The international conference on the API Platform Framework

API Platform Conference 2024: meet the best PHP, JavaScript and API experts

Learn more about the event, register for the conference, and get ready for two days of inspiration, ideas, and knowledge-sharing with our incredible lineup of renowned specialists and advocates.

Register now
Reference
C
Class

ApiPlatform\Doctrine\Odm\PropertyInfo\DoctrineExtractor

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
}

Methods

__construct

public __construct(Doctrine\Persistence\ObjectManager $objectManager)

Parameters

objectManagerDoctrine\Persistence\ObjectManager

getProperties

Gets the list of properties available for the given class.

public getProperties($class, array $context): array<int, string>

Parameters

class
contextarray

Returns

array<int, string>

getTypes

Gets types of a property.

public getTypes($class, $property, array $context): array&lt;int, Symfony\Component\PropertyInfo\Type&gt;

Parameters

class
property
contextarray

Returns

array<int, Symfony\Component\PropertyInfo\Type>

isReadable

Is the property readable?

public isReadable($class, $property, array $context): bool

Parameters

class
property
contextarray

Returns

bool

isWritable

Is the property writable?

public isWritable($class, $property, array $context): bool

Parameters

class
property
contextarray

Returns

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

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop