I can set
/**
* @var CdnObject[]
*
* @ES\Property(
* name="enabled_cdn",
* multiple="string",
* objectName="AcmeTestBundle:CdnObject"
* )
*/
public $enabledCdn;
And the mapping will be passed to ElasticSearch although multiple should be a bool, not a string and type should always be set.
/**
* @var string
*
* @Required
*/
public $type;
/**
* @var bool OneToOne or OneToMany.
*/
public $multiple;
Is this the expected behaviour since annotation camelizer?