Mixin_Owner¶
- class Mixin_Owner¶
Package: Record\Mixin
Mixin for models that have a user that is their “owner.”
- property _record¶
- property _column¶
- __construct($record, $column = owner_id)¶
Parameters: - $record (unknown) –
- $column (unknown) –
- beforeSave($args)¶
Parameters: - $args (unknown) –
- getOwner()¶
Get the record’s owner.
If the record has no user, this method returns null.
Returns: User|null