示例#1
0
 /**
  * @expectedException \RuntimeException
  */
 public function testStoreException()
 {
     $type = $this->getMock('EMC\\TableBundle\\Table\\Type\\TableTypeInterface');
     $data = array(array(1), array(2));
     $options = array('x' => 3, 'y' => 'z');
     $this->tableSession->store($type, $data, $options);
 }
示例#2
0
 public function onPreSetData(TablePreSetDataEvent $event)
 {
     $this->session->store($event->getTable()->getType(), $event->getData(), $event->getOptions());
 }