Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix inferReciprocalComponent called on unsaved
DataObject::inferReciprocalComponent cannot be called on object without IDs. There is currently no checks if owner has a proper id, which could result on errors. Also use $owner instead of $this->owner for consistency in the function. to be honest, I'm not sure how I managed to do that, but this extra check cannot hurt in my opinion.
- Loading branch information
Showing
1 changed file
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters