Skip to content

Commit

Permalink
Fix Mapper to comply with ZfcUser
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielss89 committed May 24, 2017
1 parent 0435bec commit c5e4fd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ZfcUserDoctrineORM/Mapper/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace ZfcUserDoctrineORM\Mapper;

use Doctrine\ORM\EntityManagerInterface;
use ZfcUser\Entity\UserInterface;
use ZfcUser\Mapper\User as ZfcUserMapper;
use ZfcUserDoctrineORM\Options\ModuleOptions;
use Zend\Stdlib\Hydrator\HydratorInterface;
Expand Down Expand Up @@ -46,12 +47,12 @@ public function findById($id)
return $er->find($id);
}

public function insert($entity, $tableName = null, HydratorInterface $hydrator = null)
public function insert(UserInterface $entity)
{
return $this->persist($entity);
}

public function update($entity, $where = null, $tableName = null, HydratorInterface $hydrator = null)
public function update(UserInterface $entity)
{
return $this->persist($entity);
}
Expand Down

0 comments on commit c5e4fd5

Please sign in to comment.