/** * * @return \SplFixedArray */ public function fetchAllByPrimary($keys) { if (empty($keys)) { return new \SplFixedArray(0); } return $this->select()->where($this->_db->quoteIdentifier($this->_primary[0], true) . ' in (' . $this->_db->quoteArray($keys) . ')')->fetchAll(); }