cycle / annotated

Schema generation using annotated entities and mappers
MIT License
23 stars 12 forks source link

Enhance documentation pls #12

Closed rumatakira closed 3 years ago

rumatakira commented 3 years ago

Do u know that /** @HasOne(target=Profile::class, load="eager") */

don't work without use Cycle\Annotated\Annotation\Relation\HasOne

and so on will all entities from \Relation

and this is not obviously - people need to study your code.

wolfy-j commented 3 years ago

Hi,

it is the default behavior of Doctrine Annotations and it's the first thing written in documentation about annotations: https://github.com/cycle/docs/blob/master/annotated/prerequisites.md#prerequisites

Cycle is using the Doctrine/Annotations package, make sure that annotations are loadable (use) and the syntax is correct.