code: public function createLocalDataItem($model, $config = [])
      {
          $config['isForeign'] = false;
          $config['localObject'] = $model;
  
          return $this->createDataItem($config);
      }
docs: [[@doctodo method_description:createLocalDataItem]].
  
  @param [[@doctodo param_type:model]] $model  [[@doctodo param_description:model]]
  @param array                         $config [[@doctodo param_description:config]] [optional]
  
  @return [[@doctodo return_type:createLocalDataItem]] [[@doctodo return_description:createLocalDataItem]]