Hi there!
Not sure whether it’s a bug or a feature, but I can’t make a selection the way I want now in ST2.
To give an example, here’s my code:
[code]
/**
- getUserSectionsList(user_id)
- @return list of sections for the user given in parameter in doctrine objects
-
@author
**/
public static function getUserSectionsList($user_id)
{
return Doctrine_Query::create()
->from(‘ModuleSectionUser’)
->where(‘user_id = ?’ , array($user_id))
->execute();
}[/code]
When I’m in the body of my function, I’d like to use a shortcut to select from ‘return’ to ‘execute();’ (to put those lines in comments in that case). I’ve tried using the Expand to Scope, Brackets and Paragraph but it never really does the work. Brackets should be the closest, but it includes the two curly brackets (where I think it shouldn’t, at least at the first selection).
Anything I am missing?