Update Model.php

Fix relation connections