Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rubensayshi/1033307 to your computer and use it in GitHub Desktop.
Save rubensayshi/1033307 to your computer and use it in GitHub Desktop.
Voiture :: SFI :: SFINode :: reference
<?php
$nodeOne = $coll->addItem(new SFINode('none_one', 'the first node ever', array(
'type' => 'page',
'title' => 'Node One',
'body' => StructuralFixtureItemBase::getLipsum(),
)));
$coll->addItem(new SFINode('none_two', 'the second node', array(
'type' => 'page',
'title' => 'Node Two',
'body' => StructuralFixtureItemBase::getLipsum(),
'field_other_node' => $nodeOne,
)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment