Skip to content

Commit

Permalink
Fix PropertyAccessor factory method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kix committed Mar 31, 2014
1 parent 0e7aba8 commit 7ad7232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ protected function buildForm()
if ($this->isChild() && $this->getParentAssociationMapping()) {
$parent = $this->getParent()->getObject($this->request->get($this->getParent()->getIdParameter()));

$propertyAccessor = PropertyAccess::getPropertyAccessor();
$propertyAccessor = PropertyAccess::createPropertyAccessor();
$propertyPath = new PropertyPath($this->getParentAssociationMapping());

$object = $this->getSubject();
Expand Down
2 changes: 1 addition & 1 deletion Twig/Extension/SonataAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function renderRelationElement($element, FieldDescriptionInterface $field
return call_user_func(array($element, $method));
}

return PropertyAccess::getPropertyAccessor()->getValue($element, $propertyPath);
return PropertyAccess::createPropertyAccessor()->getValue($element, $propertyPath);
}

/**
Expand Down

0 comments on commit 7ad7232

Please sign in to comment.