laravel-doctrine / fluent

Fluent mapping driver for Doctrine2
http://www.laraveldoctrine.org/docs/current/fluent
MIT License
43 stars 22 forks source link

Convert paths into Mapping objects #49

Open guiwoda opened 7 years ago

guiwoda commented 7 years ago

This PR adds a function that can convert an array of paths into an array of Mapping objects by reflecting on declared classes, just as the AnnotationDriver does.

The FluentDriver API is almost unchanged. To support receiving already-instanced Mapping objects, the addMapping methods had to be relaxed. Took the opportunity to refactor that relaxation to the lowest-level method, but this could be rolled back if BC matters.

We are debating between this and #48 :smile:

eigan commented 3 years ago

@guiwoda Any reason why this wasn't merged?