Skip to content

Commit

Permalink
Removed useless clone & updated dependencies to sf3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Jul 20, 2016
1 parent 1bdf53b commit 4a18b12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
],
"require": {
"php": ">=5.4.0",
"symfony/event-dispatcher" : "~2.2",
"symfony/property-access": "~2.3",
"symfony/options-resolver": "~2.6",
"symfony/event-dispatcher" : "^2.2|^3.0",
"symfony/property-access": "^2.3|^3.0",
"symfony/options-resolver": "^2.6|^3.0",
"fsi/reflection" : "0.9.*",
"fsi/data-indexer" : "0.9.*"
},
Expand Down
3 changes: 1 addition & 2 deletions lib/Extension/Symfony/ColumnTypeExtension/FormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ public function bindData(ColumnTypeInterface $column, $data, $object, $index)
}
}

$formObject = clone $object;
/** @var FormInterface $form */
$form = $this->createForm($column, $index, $formObject);
$form = $this->createForm($column, $index, $object);
$form->submit(array($index => $formData));
if ($form->isValid()) {
foreach ($form->getData() as $fields) {
Expand Down

0 comments on commit 4a18b12

Please sign in to comment.