Your Account
Community
Topics (Upcoming)
More |
View story
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, 13 hours agoWith 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
|