Example #1
0
 /**
  * Repairs a glitch in aliases used with virtual fields
  *
  * @param string $id 
  * @param string $table 
  * @param string $ds 
  */
 function __construct($id = false, $table = null, $ds = null)
 {
     parent::__construct($id, $table, $ds);
     $this->_findMethods['paginatecount'] = true;
     foreach ($this->virtualFields as $field => $value) {
         $this->virtualFields[$field] = str_replace($this->name, $this->alias, $value);
     }
 }
 public function __construct($id = false, $table = null, $ds = null)
 {
     parent::__construct($id, $table, $ds);
     $this->_findMethods['paginatecount'] = true;
 }