public function addUserData(Userdata $userData) { $userData->setRegister($this); // synchronously updating inverse side }