public function getAttributes()
    {
        // Quick, ugly hack to handle 5.6.37 update (getAttributes() now also called in performInsert()).
        if ($this->isPerformInsertInBacktrace()) {
            return parent::getAttributes();
        }

        return array_merge($this->attachedFiles, parent::getAttributes());
    }
public function getAttributes()
    {
        // Quick, ugly hack to handle 5.6.37 update (getAttributes() now also called in performInsert()).
        if ($this->isPerformInsertInBacktrace()) {
            return parent::getAttributes();
        }

        return array_merge($this->attachedFiles, parent::getAttributes());
    }
public function getAttributes ( ) { // Quick, ugly hack to handle 5.6.37 update (getAttributes() now also called in performInsert()). if ( $ this -> isPerformInsertInBacktrace ( ) ) { return parent :: getAttributes ( ) ; } return array_merge ( $ this -> attachedFiles , parent :: getAttributes ( ) ) ; }
Get all of the current attributes and attached files on the model.

@return mixed
Get all of the current attributes and attached files on the model .