Skip to content

Commit

Permalink
Update Mapper to be ZfcUser compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielss89 committed Aug 29, 2018
1 parent c5e4fd5 commit 10950aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ZfcUserDoctrineORM/Mapper/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use ZfcUser\Entity\UserInterface;
use ZfcUser\Mapper\User as ZfcUserMapper;
use ZfcUserDoctrineORM\Options\ModuleOptions;
use Zend\Stdlib\Hydrator\HydratorInterface;
use Zend\Hydrator\HydratorInterface;

class User extends ZfcUserMapper
{
Expand Down Expand Up @@ -47,12 +47,12 @@ public function findById($id)
return $er->find($id);
}

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

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

0 comments on commit 10950aa

Please sign in to comment.