Skip to content

Instantly share code, notes, and snippets.

@dmclark
Created January 27, 2011 19:45
Show Gist options
  • Save dmclark/799084 to your computer and use it in GitHub Desktop.
Save dmclark/799084 to your computer and use it in GitHub Desktop.
<?php
class StaffTable extends sfGuardUserTable
{
public static function getInstance()
{
return Doctrine_Core::getTable('Staff');
}
public function getStaffinCenter(sfWebRequest $request) {
$q = $this->createQuery('s')
->where('s.center_id = ?', $request->getUser()->getCenter()->getId());
return $q->execute();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment