src/Milky/Database/Eloquent/Relations/BelongsToMany.php
public function findOrNew($id, $columns = ['*'])
	{
		if (is_null($instance = $this->find($id, $columns))) {
			$instance = $this->getRelated()->newInstance();
		}

		return $instance;
	}
public function findOrNew($id, $columns = ['*'])
	{
		if (is_null($instance = $this->find($id, $columns))) {
			$instance = $this->getRelated()->newInstance();
		}

		return $instance;
	}
public function findOrNew ( $ id , $ columns = [ '*' ] ) { if ( is_null ( $ instance = $ this -> find ( $ id , $ columns ) ) ) { $ instance = $ this -> getRelated ( ) -> newInstance ( ) ; } return $ instance ; }
Find a related model by its primary key or return new instance of the related model.

@param  mixed  $id
@param  array  $columns
@return Model
Find a related model by its primary key or return new instance of the related model .