| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function testIssue() |
||
| 28 | { |
||
| 29 | // Test insert |
||
| 30 | $child = new GH7824Child(); |
||
| 31 | $child->name = 'Sam'; |
||
| 32 | $child->someProperty = 'foo'; |
||
| 33 | $this->em->persist($child); |
||
| 34 | $this->em->flush(); |
||
| 35 | self::assertEquals($child->someProperty, 'foo'); |
||
| 36 | |||
| 37 | // Test update |
||
| 38 | $child->name = 'Bob'; |
||
| 39 | $this->em->flush(); |
||
| 40 | $this->em->clear(); |
||
| 41 | |||
| 42 | // Test find |
||
| 43 | $child = $this->em->getRepository(GH7824Child::class)->find(1); |
||
| 44 | self::assertEquals($child->name, 'Bob'); |
||
| 45 | self::assertEquals($child->someProperty, null); |
||
| 46 | } |
||
| 73 |