Closed iforp closed 7 years ago
see also on forum here: http://forum.phalconphp.com/discussion/286/named-scopes
+1 it's a must have feature
I want to close this issue because I don't want a bunch of these lying around. I'd like to add support for anything/everything at some point, but keeping the issue open doesn't help that. :) If anyone wants to get started, I'd love that.
There is a great feature in Yii framework called Named Scopes. // The original idea of named scopes came from Ruby on Rails.
It is like query builder, but more usable 'cause of custom conditions set. Check it out:
Also through scope you can join other models. Really miss this functionality in Phalcon.
This issue may be similar to #926