public function setValue($value) { $rows = array(); $value = (array) $value; foreach ($value as $row) { $tableRow = new TableRow($this); $tableRow->setValues($row); $rows[] = $tableRow; } $this->rows = new ArrayCollection($rows); }
/** @inheritdoc */ public function reverseTransform($value) { $tableRow = new TableRow(); $tableRow->setValues($value); return $tableRow; }