original_string: public function findOrNew($id, $columns = ['*'])
  	{
  		if (is_null($instance = $this->find($id, $columns))) {
  			$instance = $this->getRelated()->newInstance();
  		}
  
  		return $instance;
  	}
code: public function findOrNew($id, $columns = ['*'])
  	{
  		if (is_null($instance = $this->find($id, $columns))) {
  			$instance = $this->getRelated()->newInstance();
  		}
  
  		return $instance;
  	}
code_tokens: public function findOrNew ( $ id , $ columns = [ '*' ] ) { if ( is_null ( $ instance = $ this -> find ( $ id , $ columns ) ) ) { $ instance = $ this -> getRelated ( ) -> newInstance ( ) ; } return $ instance ; }
docstring: Find a related model by its primary key or return new instance of the related model.
  
  @param  mixed  $id
  @param  array  $columns
  @return Model
docstring_tokens: Find a related model by its primary key or return new instance of the related model .