getInvoice()) { $object->setParentId($object->getInvoice()->getId()); } return parent::beforeSave($object); } }