| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function store(Entity\Identity $entity) |
||
| 15 | { |
||
| 16 | $table = $this->config['accounts']['identities']; |
||
| 17 | |||
| 18 | $sql = "UPDATE $table |
||
| 19 | SET user_id = :user |
||
| 20 | WHERE identity_id = :id"; |
||
| 21 | |||
| 22 | $statement = $this->connection->prepare($sql); |
||
| 23 | |||
| 24 | $statement->bindValue(':id', $entity->getId()); |
||
| 25 | $statement->bindValue(':user', $entity->getUserId()); |
||
| 26 | $statement->execute(); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |