示例#1
0
文件: Table.php 项目: lytc/sloths
 /**
  * @param null $columns
  * @return Select
  */
 public function select($columns = null)
 {
     $select = new Select();
     $select->setConnection($this->getConnectionManager()->getReadConnection())->table($this->getName());
     if ($this->cacheManager) {
         $select->setCacheManager($this->cacheManager);
     }
     if ($columns) {
         $select->select($columns);
     }
     return $select;
 }