private static function getModelFromDBObject($dbObject)
    {
        $modelName = get_called_class();
        $object = new $modelName();
        foreach ($dbObject as $column => $val) {
            $object->$column = $val;
        }

        return $object;
    }
private static function getModelFromDBObject($dbObject)
    {
        $modelName = get_called_class();
        $object = new $modelName();
        foreach ($dbObject as $column => $val) {
            $object->$column = $val;
        }

        return $object;
    }
private static function getModelFromDBObject ( $ dbObject ) { $ modelName = get_called_class ( ) ; $ object = new $ modelName ( ) ; foreach ( $ dbObject as $ column => $ val ) { $ object -> $ column = $ val ; } return $ object ; }
Mount the ModelBase using the data from the DB.

@param object $dbObject

@return ModelBase
Mount the ModelBase using the data from the DB .