/** * @param array $ids * @return Berthe_AbstractVO[] */ public function getColumnByIds(array $ids = array(), $columnName = 'id') { $ids = array_filter(array_unique($ids)); $_res = $this->_reader->selectColByIds($ids, $columnName); // In order to keep the same order than given in method parameter if (count($ids) != count($_res)) { trigger_error(get_called_class() . '::' . __FUNCTION__ . '() : Did not get all values', E_USER_NOTICE); } return $_res; }