Skip to content

Commit

Permalink
Update ForeignField to support outside behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot authored Jan 30, 2023
1 parent 8640343 commit f4729d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/foreignField/ForeignField.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ public function afterElementSave(ElementInterface $element, bool $isNew): void {
* @inheritDoc
*/
public function behaviors(): array {
return [
'typecast' => [
'class' => AttributeTypecastBehavior::class,
],
$behaviors = parent::behaviors();

$behaviors['typecast'] = [
'class' => AttributeTypecastBehavior::class,
];

return $behaviors;
}

/**
Expand Down

0 comments on commit f4729d9

Please sign in to comment.