public static function getModel($modelName, $uniqueIdentifier = null)
    {
        $class = self::getModelClass($modelName);
        $model = new $class($uniqueIdentifier);

        return $model;
    }
public static function getModel($modelName, $uniqueIdentifier = null)
    {
        $class = self::getModelClass($modelName);
        $model = new $class($uniqueIdentifier);

        return $model;
    }
public static function getModel ( $ modelName , $ uniqueIdentifier = null ) { $ class = self :: getModelClass ( $ modelName ) ; $ model = new $ class ( $ uniqueIdentifier ) ; return $ model ; }
Gets an empty model of the appropriate type for a given model name.

@param $modelName
@param null $uniqueIdentifier Optionally a unique identifier to load.

@return Model
Gets an empty model of the appropriate type for a given model name .