Is there any way to implement a MongoDB/Document/User based authentication on Symfony2 ? Currently on security/providers we have the type \"entity:\" type which depends on doctrine-orm, but obviously
This question got me today, my repositories should always return full objects? They can not return partial data (in an array for example)?
I\'m migrating a site to Symfony2.The site has tables where the primary key integer has a name, following the convention of table name + \"id\".E.g. Table \"Node\" has primary key \"nodeid\".
I am using Doctrine 2 MongoDB ODM, all working fine except 1 specific relation. What\'s obscure is that I have seemingly identical relations in the project and they all work just fine
I\'m using this for in my doctrine2 query but it won\'t work $obj_query_builder->select(\'p\') ->from(\'General\\Domain\\Product\', \'p\')
My question is not aiming at ORMs in general but specifically Doctrine 2! Every mildly complex PHP-application uses a database.
I\'d like to include some additional functions in my Doctrine 2 entities to contain code that I\'m going to have to run quite frequently. For example:
I have a select field that fetch from an entity and I would like to customize completely my select by choosing the table the id is picked from
With Doctrine 2, is there any way to specify HYDRATE_ARRAY when I use the convenience 开发者_C百科methods EntityRepository::find or EntityRepository::findOneById? Do I have to write my own DQL query,
I am playing with Doctrine 2 and PHPUnit and of course, something goes wrong sometimes. That\'s what unittesting is all about. But when I get a PDOException for one reason or the other, I don\'t get t