private function prefixModelAttributes($input, $model)
    {
        foreach (array_keys(get_object_vars($model)) as $attr) {
            $input = preg_replace('/\\b' . $attr . '\\b/', $this->table . ".$attr", $input);
        }
        return $input;
    }
private function prefixModelAttributes($input, $model)
    {
        foreach (array_keys(get_object_vars($model)) as $attr) {
            $input = preg_replace('/\\b' . $attr . '\\b/', $this->table . ".$attr", $input);
        }
        return $input;
    }
private function prefixModelAttributes ( $ input , $ model ) { foreach ( array_keys ( get_object_vars ( $ model ) ) as $ attr ) { $ input = preg_replace ( '/\\b' . $ attr . '\\b/' , $ this -> table . ".$attr" , $ input ) ; } return $ input ; }
Prefix model attributes with the associated table name.

@param string $input     Input string.
@param object $model     Model instance.

@return string           String with table-prefixed attributes.
Prefix model attributes with the associated table name .