I\'m attempting to use Doctrine ORM for the first time, and I\'m following the configuration found here.
I am using MySQL with Zend Framework & Doctrine 2. I think even if you don\'t use Doctrine 2, you will be familiar with errors like
I just don开发者_如何学运维\'t really get this part Say you clear a collection of tags by calling $post->getTags()->clear(); and
I learnt that I should be using service classes to persist entities into the database instead of putting such logic in models/controllers. I currently made my service class something like
I am using an MVC framework (Zend Framework) with ORM (Doctrine 2). On 1st look the answer seems to be models. But after some thought, I wonder if it should be in the controller. I am refering to func
I originally wanted to fin开发者_JS百科d out how to access the Doctrine 2\'s Entity Manager from within Entity Classes. But I saw another question Using EntityManager inside Doctrine 2.0 entities, and
I am getting the exception PDOException: You cannot serialize or unserialize PDO instances when I am trying to use PHPUnit for Unit Tests. I have not much going on. I am using Zend Framework 1.11.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
I asked a similar question a whil开发者_C百科e back: Using the Data Mapper Pattern, Should the Entities (Domain Objects) know about the Mapper? However, it was generic and I\'m really interested in ho
I remember reading that in Doctrine 2 models, I should not set properties/fields public. How then would you expose these fields? T开发者_StackOverflowhe sandbox used get*() & set*() methods. Is th