Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Commit

Permalink
ZF3 compatibility, PHP5.5 support dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Jul 26, 2016
1 parent ebd26ad commit bbb7f2d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
5 changes: 2 additions & 3 deletions src/DoctrineModule/Stdlib/Hydrator/DoctrineObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
use RuntimeException;
use Traversable;
use Zend\Stdlib\ArrayUtils;
use Zend\Stdlib\Hydrator\AbstractHydrator;
use Zend\Stdlib\Hydrator\Filter\FilterProviderInterface;
use Zend\Hydrator\AbstractHydrator;
use Zend\Hydrator\Filter\FilterProviderInterface;

/**
* This hydrator has been completely refactored for DoctrineModule 0.7.0. It provides an easy and powerful way
Expand Down Expand Up @@ -421,7 +421,6 @@ protected function toMany($object, $collectionName, $target, $values)

// If the collection contains identifiers, fetch the objects from database
foreach ($values as $value) {

if ($value instanceof $target) {
// assumes modifications have already taken place in object
$collection[] = $value;
Expand Down
2 changes: 1 addition & 1 deletion src/DoctrineModule/Stdlib/Hydrator/Filter/PropertyName.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

namespace DoctrineModule\Stdlib\Hydrator\Filter;

use Zend\Stdlib\Hydrator\Filter\FilterInterface;
use Zend\Hydrator\Filter\FilterInterface;

/**
* Provides a filter to restrict returned fields by whitelisting or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use InvalidArgumentException;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Zend\Stdlib\Hydrator\Strategy\StrategyInterface;
use Zend\Hydrator\Strategy\StrategyInterface;

/**
* @license MIT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace DoctrineModuleTest\Stdlib\Hydrator\Asset;

use Zend\Stdlib\Hydrator\Strategy\StrategyInterface;
use Zend\Hydrator\Strategy\StrategyInterface;

class ContextStrategy implements StrategyInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace DoctrineModuleTest\Stdlib\Hydrator\Asset;

use Zend\Stdlib\Hydrator\Strategy\StrategyInterface;
use Zend\Hydrator\Strategy\StrategyInterface;

class SimpleStrategy implements StrategyInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use DoctrineModule\Stdlib\Hydrator\Strategy;
use DoctrineModule\Stdlib\Hydrator\Filter;
use DoctrineModuleTest\Stdlib\Hydrator\Asset\NamingStrategyEntity;
use Zend\Stdlib\Hydrator\NamingStrategy\UnderscoreNamingStrategy;
use Zend\Hydrator\NamingStrategy\UnderscoreNamingStrategy;

class DoctrineObjectTest extends BaseTestCase
{
Expand Down Expand Up @@ -726,7 +726,6 @@ function ($arg) {
$this->objectManager,
false
);

}

public function configureObjectManagerForOneToManyArrayEntity()
Expand Down Expand Up @@ -2192,8 +2191,6 @@ function ($target, $arg) use ($entityInDatabaseWithIdOfTwo, $entityInDatabaseWit

$this->assertEquals(3, $entities[1]->getId());
$this->assertSame($entityInDatabaseWithIdOfThree, $entities[1]);


}

public function testAssertCollectionsAreNotSwappedDuringHydration()
Expand Down

0 comments on commit bbb7f2d

Please sign in to comment.