Update Model.php

Fix bug : dirty data of references synchronization