Skip to content

Commit

Permalink
Merge pull request sonata-project#2021 from kix/fix-deprecations
Browse files Browse the repository at this point in the history
Fixed some deprecations
  • Loading branch information
rande committed Mar 31, 2014
2 parents 0e7aba8 + 3fe62a1 commit dea469a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 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 Tests/Form/Type/AdminTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Sonata\AdminBundle\Tests\Form\Type;

use Sonata\AdminBundle\Form\Type\AdminType;
use Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase;
use Symfony\Component\Form\Test\TypeTestCase;
use Symfony\Component\OptionsResolver\OptionsResolver;

class AdminTypeTest extends TypeTestCase
Expand Down
2 changes: 1 addition & 1 deletion Tests/Form/Type/Filter/DateTimeRangeTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Sonata\AdminBundle\Tests\Form\Type;

use Sonata\AdminBundle\Form\Type\Filter\DateTimeRangeType;
use Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase;
use Symfony\Component\Form\Test\TypeTestCase;
use Symfony\Component\OptionsResolver\OptionsResolver;

class DateTimeRangeTypeTest extends TypeTestCase
Expand Down
2 changes: 1 addition & 1 deletion Tests/Form/Type/ModelHiddenTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Sonata\AdminBundle\Form\Type\ModelHiddenType;

use Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase;
use Symfony\Component\Form\Test\TypeTestCase;
use Symfony\Component\OptionsResolver\OptionsResolver;

class ModelHiddenTypeTest extends TypeTestCase
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 dea469a

Please sign in to comment.