Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Issue #147 fix for Unit Tests fail if SoftDelete Behavior is attached. #148

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

inigoflores
Copy link

Bug was first described in #138. Was partially fixed in #139. But the fix is incomplete, and also breaks relationships that use aliases (described in #147).

With the proposed changes, the behavior will not become active if the table is missing, and -thus- will not attempt to run $model->hasField($flag), responsible for the MissingTableExceptions. The only scenario in which I believe this missing table issue happens is in unit testing, when relationships are loaded before fixtures. This fix should not affect normal operation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant