Example #1
0
 /**
  * @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;
 }