original_string: private function createInsertObj(Model $model)
      {
          $metadata = $model->getMetadata();
          $insert = [
              $this->getIdentifierKey()   => $this->convertId($model->getId()),
          ];
          if (true === $metadata->isChildEntity()) {
              $insert[$this->getPolymorphicKey()] = $metadata->type;
          }
          return $this->appendChangeSet($model, $insert, $this->getCreateChangeSetHandler());
      }
code: private function createInsertObj(Model $model)
      {
          $metadata = $model->getMetadata();
          $insert = [
              $this->getIdentifierKey()   => $this->convertId($model->getId()),
          ];
          if (true === $metadata->isChildEntity()) {
              $insert[$this->getPolymorphicKey()] = $metadata->type;
          }
          return $this->appendChangeSet($model, $insert, $this->getCreateChangeSetHandler());
      }
code_tokens: private function createInsertObj ( Model $ model ) { $ metadata = $ model -> getMetadata ( ) ; $ insert = [ $ this -> getIdentifierKey ( ) => $ this -> convertId ( $ model -> getId ( ) ) , ] ; if ( true === $ metadata -> isChildEntity ( ) ) { $ insert [ $ this -> getPolymorphicKey ( ) ] = $ metadata -> type ; } return $ this -> appendChangeSet ( $ model , $ insert , $ this -> getCreateChangeSetHandler ( ) ) ; }
docstring: Creates the database insert object for a Model.
  
  @param   Model   $model
  @return  array
docstring_tokens: Creates the database insert object for a Model .