src/FreeFW/Core/StorageModel.php
public static function getQuery(string $p_type = \FreeFW\Model\Query::QUERY_SELECT)
    {
        $cls   = get_called_class();
        $cls   = rtrim(ltrim($cls, '\\'), '\\');
        $query = \FreeFW\DI\DI::get('FreeFW::Model::Query');
        $query
            ->setType($p_type)
            ->setMainModel(str_replace('\\', '::', $cls))
        ;
        return $query;
    }
public static function getQuery(string $p_type = \FreeFW\Model\Query::QUERY_SELECT)
    {
        $cls   = get_called_class();
        $cls   = rtrim(ltrim($cls, '\\'), '\\');
        $query = \FreeFW\DI\DI::get('FreeFW::Model::Query');
        $query
            ->setType($p_type)
            ->setMainModel(str_replace('\\', '::', $cls))
        ;
        return $query;
    }
public static function getQuery ( string $ p_type = \ FreeFW \ Model \ Query :: QUERY_SELECT ) { $ cls = get_called_class ( ) ; $ cls = rtrim ( ltrim ( $ cls , '\\' ) , '\\' ) ; $ query = \ FreeFW \ DI \ DI :: get ( 'FreeFW::Model::Query' ) ; $ query -> setType ( $ p_type ) -> setMainModel ( str_replace ( '\\' , '::' , $ cls ) ) ; return $ query ; }
Get new Query Model

@param string $p_type

@return \FreeFW\Model\Query
Get new Query Model