public function testSingleRelEntityIsManagedOnFlush()
{
$this->clearDb();
$this->playMovies();
$this->client->run("MATCH (m:Movie {title:'The Matrix'})\n CREATE (m)-[:HAS_SCORE {finalScore: 6.74}]->(:Score {value: 7})");
/** @var Movie $matrix */
$matrix = $this->em->getRepository(Movie::class)->findOneBy('title', 'The Matrix');
$matrix->getScore()->setFinalScore(4.35);
$this->em->flush();
$this->em->clear();
/** @var Movie $matrix2 */
$matrix2 = $this->em->getRepository(Movie::class)->findOneBy('title', 'The Matrix');
$this->assertEquals(4.35, $matrix->getScore()->getFinalScore());
}