src/Doctrine/Group/GroupRepository.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
{ |
| 16 |
|
private $container; |
| 17 |
|
|
| 18 |
|
public function __construct(EntityManager $em, ClassMetadata $class, ContainerInterface $container) |
| 19 |
|
{ |
| 20 |
|
parent::__construct($em, $class); |
| 21 |
|
if ($container instanceof Container) { |
| 22 |
|
$this->container = $container; |
| 23 |
|
} else { |
| 24 |
|
$this->container = new Container($container); |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function save(GroupEntityInterface $group) |
| 29 |
|
{ |
src/Doctrine/Session/SessionRepository.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
{ |
| 16 |
|
private $container; |
| 17 |
|
|
| 18 |
|
public function __construct(EntityManager $em, ClassMetadata $class, ContainerInterface $container) |
| 19 |
|
{ |
| 20 |
|
parent::__construct($em, $class); |
| 21 |
|
if ($container instanceof Container) { |
| 22 |
|
$this->container = $container; |
| 23 |
|
} else { |
| 24 |
|
$this->container = new Container($container); |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function save(SessionEntityInterface $session) |
| 29 |
|
{ |
src/Doctrine/User/UserRepository.php 1 location
|
@@ 19-27 (lines=9) @@
|
| 16 |
|
{ |
| 17 |
|
private $container; |
| 18 |
|
|
| 19 |
|
public function __construct(EntityManager $em, ClassMetadata $class, ContainerInterface $container) |
| 20 |
|
{ |
| 21 |
|
parent::__construct($em, $class); |
| 22 |
|
if ($container instanceof Container) { |
| 23 |
|
$this->container = $container; |
| 24 |
|
} else { |
| 25 |
|
$this->container = new Container($container); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
/** @return UserEntity */ |
| 30 |
|
public function findByEmail(string $email) |