Skip to content

Instantly share code, notes, and snippets.

@fnordo
fnordo / activity-test.php
Created June 7, 2013 10:41
timeline-activity-example
// ControllerAction
public function createControlsTheWorlddActivityAction($id)
{
$subject = $this->actionManager->findOrCreateComponent('Acme\Entity\Page', $id);
$action = $this->actionManager->create($subject, 'controls', array('directComplement' => 'the world'));
$this->actionManager->updateAction($action);
$activities = $this->actionManager->getSubjectActions($subject);
@fnordo
fnordo / gist:9325499
Created March 3, 2014 14:01
example-array
array(
foo__id => 1,
foo__title => "foo",
bar__id => 2,
bar__test => "aha"
)