Open GoogleCodeExporter opened 9 years ago
thanks for your comments. I do want to find the best method to achieve such a
feature. your information was really helpful, hopefully I'll come with a final
resolution soon.
Original comment by kfirufk@gmail.com
on 26 Jul 2012 at 9:21
Hi,
just a small suggestion, I have a repositories folder where I keep all my
custom code for each model.
-root
..models
...DbTable
....Users.php (DbTable)
....Users_Wishlist.php (DbTable)
...mappers
....Users.php (mapper)
....Users_Wishlist.php (mapper)
...repositories
....Users.php (repository "custom code")
....Users_Wishlist.php (repository "custom code")
...Users.php (model)
...Users_Wishlist.php (model)
* Add RepositoryAbstract.php class with at least a constructor;
* Add additional methods/properties to ModelAbstract and generated classes to
handle the repository, ie. setRepository($repository) in ModelAbstract,
getRepository() in each generated model etc;
I think this is more clean than having a custom class for each model, mapper
and dbtable, since think most custom code could be handled at the "repository"
level;
FYI. I'm migrating a big project to Symfony2 next year, wich works nicely with
Doctrine out of the box, looking forward to it :)
Original comment by diegot...@gmail.com
on 19 Dec 2012 at 1:10
Original issue reported on code.google.com by
globalni...@gmail.com
on 9 Feb 2012 at 12:04Attachments: