src/Common/Console/Command/Make/Model.php
private function tableExists(\stdClass $oModel): bool
    {
        $oDb     = Factory::service('PDODatabase');
        $oResult = $oDb->query('SHOW TABLES LIKE "' . $oModel->table_with_prefix . '"');
        return $oResult->rowCount() > 0;
    }
private function tableExists(\stdClass $oModel): bool
    {
        $oDb     = Factory::service('PDODatabase');
        $oResult = $oDb->query('SHOW TABLES LIKE "' . $oModel->table_with_prefix . '"');
        return $oResult->rowCount() > 0;
    }
private function tableExists ( \ stdClass $ oModel ) : bool { $ oDb = Factory :: service ( 'PDODatabase' ) ; $ oResult = $ oDb -> query ( 'SHOW TABLES LIKE "' . $ oModel -> table_with_prefix . '"' ) ; return $ oResult -> rowCount ( ) > 0 ; }
Detemine whether a particular table exists already

@param \stdClass $oModel The model definition

@return bool
@throws \Nails\Common\Exception\FactoryException
Detemine whether a particular table exists already