Created
April 2, 2013 08:33
-
-
Save stajnert/5290789 to your computer and use it in GitHub Desktop.
Get records first by slug = london, then rest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->locations = Doctrine_Core::getTable('location') | |
->createQuery('l') | |
->orderBy("CASE url_slug WHEN :slug THEN '' ELSE name END") | |
->execute(array('slug' => 'london')); | |
>? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment