Laravel 4 with Data Mapper?

荒凉一梦 提交于 2019-12-13 04:29:27

问题


Does anyone know if Laravel has some sort of library/plugin or tweak to use Data Mapper or to make Active Record behave like Data Mapper?.

I'm not a Laravel user,so perhaps Eloquent is using a mix of Active Record and Data Mapper and I'm not aware of that.


回答1:


So, we can implement the Data Mapper pattern into Laravel using Doctrine;

Packagist: https://packagist.org/packages/atrauzzi/laravel-doctrine

Laravel Doc: http://bundles.laravel.com/bundle/doctrine



来源:https://stackoverflow.com/questions/16923350/laravel-4-with-data-mapper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!