Skip to content

Property annotations not being validated anymore. #341

@Zylius

Description

@Zylius

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions