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
(2) This is because whenever you use the ResetDatabase trait in tests, it will call that method. I added a debug_print_backtrace() in the BaseOrmResetter::dropAndResetDatabase() method and found this:
Everything works and the decorator methods are called, etc.
BUT
This won't solve the problem. I must override the original logic of BaseOrmResetter::dropAndResetDatabase() and I can't decorate BaseOrmResetter, only OrmResetter
Can anybody please give me some help about what to do here? Thanks a lot!
The text was updated successfully, but these errors were encountered:
Related to #757. I spent some time fully understand when and why it fails. I found the cause, but I can't find a solution.
(1) The only way to avoid errors is to make this change:
bda4e15
(2) This is because whenever you use the
ResetDatabase
trait in tests, it will call that method. I added adebug_print_backtrace()
in theBaseOrmResetter::dropAndResetDatabase()
method and found this:(3) I can't solve this with decoration. I defined my decorator like this:
Everything works and the decorator methods are called, etc.
BUT
This won't solve the problem. I must override the original logic of
BaseOrmResetter::dropAndResetDatabase()
and I can't decorateBaseOrmResetter
, onlyOrmResetter
Can anybody please give me some help about what to do here? Thanks a lot!
The text was updated successfully, but these errors were encountered: