Guest User

Untitled

a guest
Jun 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. class sfSamtTypeTable extends Doctrine_Table
  4. {
  5. public function getTypeQuery()
  6. {
  7. return $this->
  8. createQuery('a');
  9. }
  10.  
  11.  
  12. public function getTypeCat($catid = null)
  13. {
  14. $q = $this->createQuery('s');
  15. $q->addwhere("s.cat_id =?",$catid);
  16.  
  17. return $q->execute();
  18. }
  19.  
  20.  
  21. public function getType(){
  22. return $this->
  23. getTypeQuery()
  24. ->execute();
  25. }
  26. }
Add Comment
Please, Sign In to add comment