Why are you looking into doctorine and not jumping right into Eloquent? I consider Eloquent to be the biggest strength of laravel so I am not sure why you are looking into using another orm!
Eloquent vs doctrine
what is the best package as ORM eloquent or doctrine 2 ? in this things or other things :
- learning curve .
- performance .
- Laravel support .
- relationships .
- schema builder (or migrations ) .
- easy to use .
- polymorphic .
Laravel Doctrine support (is there any good package as bridge ) ?
@unitedworx : Yes I think the article from culttt sums it up pretty well. I think it's worth getting a look into doctrine just to know when it's worth using a data mapper against an active record ORM.
@alnou : Afaik doctrine supports polymorphic relations. If you're building an ERP this I would definitely go this way, as you're likely to have a lot of business logic inside your domain objects.
If you're worried about your database query performance, you can go ORM less and use the Query Builder instead. In fact that's what Taylor Otwell suggested in the last podcast. And as @unitedworx pointed out, there are so many other factors that may slow down your app that you shouldn't worry too much about this. Again, caching db queries can help.
Please or to participate in this conversation.