Esempio n. 1
0
 static function findByField($field, array $args = null)
 {
     if (Database::DB()->query('SHOW TABLES LIKE \'' . Settings::$DB_PREFIX . "_" . self::$tableName . '\'')->exec()->getCount() < 1) {
         throw new InvalidArgumentException(get_called_class() . ' - ' . __FUNCTION__ . ': Invalid table "' . self::$tableName . '"');
     }
     return parent::findByField($field, $args);
 }