mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2335 from evjan/3.1
Corrected parameters in model relations example
This commit is contained in:
commit
79d633a320
@ -158,7 +158,7 @@ Model relations can be expressed through the same notation as in the YAML fixtur
|
|||||||
described earlier, through the `=>` prefix on data values.
|
described earlier, through the `=>` prefix on data values.
|
||||||
|
|
||||||
:::php
|
:::php
|
||||||
$obj = $factory->createObject('MyObject', array(
|
$obj = $factory->createObject('MyObject', 'myobj1', array(
|
||||||
'MyHasManyRelation' => '=>MyOtherObject.obj1,=>MyOtherObject.obj2'
|
'MyHasManyRelation' => '=>MyOtherObject.obj1,=>MyOtherObject.obj2'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user