CatTable.class.php 529 Bytes
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php


class CatTable extends Doctrine_Table
{
    
    /**
     * @return CatTable
     */
    public static function getInstance()
    {
        return Doctrine_Core::getTable('Cat');
    }
    
    public function findAllForOneS($params = array(), $hydrationMode = null)
    {
        return $this->createQuery()
            ->select('cp.*, cp.inner_id as cp_index')
            ->from('Cat cp INDEXBY cp_index')
            ->where('inner_id is not null')
            ->execute($params, $hydrationMode);
            
    }
}