zucchi/ZucchiDoctrine

Multiple errors / warnings on entity annotations

Closed this issue · 0 comments

Actually it's not an issue, it's a kind of warnings :) Have you ever tried to validate entity annotations?

./doctrine-module orm:validate-schema
[Mapping]  FAIL - The entity-class 'ZucchiUser\Entity\Event' mapping is invalid:
* Field 'createdAt' in class 'ZucchiUser\Entity\Event' must be private or protected. Public fields may break lazy-loading.
* Field 'updatedAt' in class 'ZucchiUser\Entity\Event' must be private or protected. Public fields may break lazy-loading.

[Mapping]  FAIL - The entity-class 'ZucchiUser\Entity\Query' mapping is invalid:
* Field 'createdAt' in class 'ZucchiUser\Entity\Query' must be private or protected. Public fields may break lazy-loading.
* Field 'updatedAt' in class 'ZucchiUser\Entity\Query' must be private or protected. Public fields may break lazy-loading.

[Mapping]  FAIL - The entity-class 'ZucchiUser\Entity\User' mapping is invalid:
* The field ZucchiUser\Entity\User#Queries is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity ZucchiUser\Entity\Query#User does not contain the required 'inversedBy=Queries' attribute.
* The field ZucchiUser\Entity\User#Events is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity ZucchiUser\Entity\Event#User does not contain the required 'inversedBy=Events' attribute.
* Field 'createdAt' in class 'ZucchiUser\Entity\User' must be private or protected. Public fields may break lazy-loading.
* Field 'updatedAt' in class 'ZucchiUser\Entity\User' must be private or protected. Public fields may break lazy-loading.

[Mapping]  FAIL - The entity-class 'ZucchiLayout\Entity\Layout' mapping is invalid:
* The field ZucchiLayout\Entity\Layout#Keywords is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity ZucchiLayout\Entity\Keyword#Layout does not contain the required 'inversedBy=Keywords' attribute.
* The field ZucchiLayout\Entity\Layout#Authors is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity ZucchiLayout\Entity\Author#Layout does not contain the required 'inversedBy=Authors' attribute.
* The field ZucchiLayout\Entity\Layout#Schedule is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity ZucchiLayout\Entity\Schedule#Layout does not contain the required 'inversedBy=Schedule' attribute.
* Field 'createdAt' in class 'ZucchiLayout\Entity\Layout' must be private or protected. Public fields may break lazy-loading.
* Field 'updatedAt' in class 'ZucchiLayout\Entity\Layout' must be private or protected. Public fields may break lazy-loading.