It's a question of references to be cleaned. This code is wrong:    ```php  $this->services_package = $services_package;  ```    This code is right:    ```php  if ($this->services_package) {      $this->services_package->order = null;  }    $this->services_package = $services_package;  ```    This doesn't deny the ORM bug, it just denies this specific scenario (the one in the test case).