EntityLoaderInterface

EntityLoaderInterface

interface EntityLoaderInterface

Custom loader for entities in the choice list.

Methods

array getEntities()

Returns an array of entities that are valid choices in the corresponding choice list.

array getEntitiesByIds(string $identifier, array $values)

Returns an array of entities matching the given identifiers.

Details

array getEntities()

Returns an array of entities that are valid choices in the corresponding choice list.

Return Value

array The entities

array getEntitiesByIds(string $identifier, array $values)

Returns an array of entities matching the given identifiers.

Parameters

string $identifier The identifier field of the object. This method is not applicable for fields with multiple identifiers.
array $values The values of the identifiers

Return Value

array The entities

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityLoaderInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部