Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class sfSamtTypeTable extends Doctrine_Table
- {
- public function getTypeQuery()
- {
- return $this->
- createQuery('a');
- }
- public function getTypeCat($catid = null)
- {
- $q = $this->createQuery('s');
- $q->addwhere("s.cat_id =?",$catid);
- return $q->execute();
- }
- public function getType(){
- return $this->
- getTypeQuery()
- ->execute();
- }
- }
Add Comment
Please, Sign In to add comment