* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\CMS; class CMSRoleRepository extends \PrestaShop\PrestaShop\Core\Foundation\Database\EntityRepository { /** * Return all CMSRoles which are already associated. * * @return array|null */ public function getCMSRolesAssociated() { $sql = ' SELECT * FROM `' . $this->getTableNameWithPrefix() . '` WHERE `id_cms` != 0'; return $this->hydrateMany($this->db->select($sql)); } }