Corrected parameters in model relations example

An identifier needs to be specified when creating an object with relations, but the example had omitted that.
Merge pull request #2335 from evjan/3.1

Corrected parameters in model relations example