You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
MissingModelException is thrown if SoftDeleteBehavior is attached to models using belongTo relationships declared with an alias other than a valid existing className.
Bug was introduced by #139. The problem is further described by @ravage84 in a #139 comment.
I have investigated the issue further, and what seems to be causing the problem is the SoftDelete behavior attaching to relationships and trying to query the database before the fixtures have been loaded.
The following will throw MissingTableException for relationships
if ($model->hasField($flag)) {
Unfortunately #139 does not solve the problem for complex HABTM relationships.
MissingModelException is thrown if SoftDeleteBehavior is attached to models using belongTo relationships declared with an alias other than a valid existing className.
Bug was introduced by #139. The problem is further described by @ravage84 in a #139 comment.
He also provides hints for the fix: ravage84/softdeletebbehavior-prob@4cf935c
The text was updated successfully, but these errors were encountered: