我想知道是否可以将symfony2中的实体管理器替换为使用Web服务获取和持久化实体的修改后管理器?
有这种捆绑包吗?
目前,我使用fosuserbundle和doctrine来管理数据库中的实体。
您正在尝试在错误的抽象级别上解决问题。
控制器等应该通过服务层从实体管理器中抽象出来。然后,可以将该层配置为使用实体管理器(或 Doctrine 存储库)或其他数据持久化机制。
我想知道是否可以将symfony2中的实体管理器替换为使用Web服务获取和持久化实体的修改后管理器?
有这种捆绑包吗?
目前,我使用fosuserbundle和doctrine来管理数据库中的实体。
您正在尝试在错误的抽象级别上解决问题。
控制器等应该通过服务层从实体管理器中抽象出来。然后,可以将该层配置为使用实体管理器(或 Doctrine 存储库)或其他数据持久化机制。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium