/** * Returns an array with data about all Group objects. * * @return array */ public function loadAllGroupsData() { try { return $this->innerGateway->loadAllGroupsData(); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }
/** * @return Group[] */ public function loadAllGroups() { return $this->mapper->extractGroupsFromRows( $this->contentTypeGateway->loadAllGroupsData() ); }