original_string: private function getMutableAttributes($model)
      {
          $attrs = get_object_vars($model);
          unset($attrs[$this->key]);
          
          // remove reference attributes, if any
          if ($model instanceof ManagedModelInterface) {
              foreach (array_keys($model->getReferences()) as $ref) {
                  unset($attrs[$ref]);
              }
          }
          
          return $attrs;
      }
code: private function getMutableAttributes($model)
      {
          $attrs = get_object_vars($model);
          unset($attrs[$this->key]);
          
          // remove reference attributes, if any
          if ($model instanceof ManagedModelInterface) {
              foreach (array_keys($model->getReferences()) as $ref) {
                  unset($attrs[$ref]);
              }
          }
          
          return $attrs;
      }
code_tokens: private function getMutableAttributes ( $ model ) { $ attrs = get_object_vars ( $ model ) ; unset ( $ attrs [ $ this -> key ] ) ; // remove reference attributes, if any if ( $ model instanceof ManagedModelInterface ) { foreach ( array_keys ( $ model -> getReferences ( ) ) as $ ref ) { unset ( $ attrs [ $ ref ] ) ; } } return $ attrs ; }
docstring: Get mutable model attributes.
  
  @param object $model Model instance.
  
  @return array        Array of attributes.
docstring_tokens: Get mutable model attributes .