$result = Doctrine::getTable('Shop')->findBySlug($name); public function findBySlug($name) { return Doctrine::getTable('Shop') ->createQuery('s') ->where('s.slug = ?', $name) ->fetchOne(); }
No comments:
Post a Comment