Example #1
0
File: Select.php Project: hifi/yarr
 static function fromObject($class, $adapter = false)
 {
     $select = new YARR_Select($class::table(), $adapter);
     $select->asObject($class);
     return $select;
 }
Example #2
0
 public static function select()
 {
     return YARR_Select::fromObject(get_called_class(), static::getAdapter());
 }