示例#1
0
文件: dmDb.php 项目: theolymp/diem
 /**
  * Shortcut for myDoctrineQuery::create
  *
  * @return myDoctrineQuery the query with filled from
  */
 public static function query($from = null, $conn = null)
 {
     if ($from instanceof Doctrine_Connection) {
         $conn = $from;
         $from = null;
     }
     $query = new myDoctrineQuery($conn);
     if ($from) {
         $query->from($from);
     }
     return $query;
 }