Your Account

Community

Topics (Upcoming)

More

View story

2
0
Why you should separate each query into its own function
http://feedproxy.google.com/~r/symfony/planet/~3/RUzn6PBRzSM...
Submitted by narko 5 months, 5 days, 12 hours ago
With a query in its own function, you can write calling functions that: a). Retrieve a collection for that type of query. b). Retrieve one result for that type of query. c). Extend that type of query with more conditions. d). Pass the query to other objects that take a query as a parameter (eg. sfPager). e). In short, reduce repetition. ...
Tags: symfony

Home | Tools | Help & FAQ | About SymfonyLab | Contact us

Âé SymfonyLab 2007

Powered by coRank.com