Closed superbull closed 7 years ago
Thanks for opening this issue and the PR (sorry it's taken me so long to get around to looking at it!)
Agreed this is needed, but there's an existing helper method 'class_uses_recursive' which we can use to achieve this.
Fixing with 2d8e5ca872249c0a256c262f45f03e307501fdbf
For example:
If you delete
Team
, thedeleted_by
field will not be filled with current user.This is because the return value of the PHP function
class_uses
does not include any traits used by a parent class. See: http://php.net/manual/en/function.class-uses.php