Replies: 2 comments
-
Add both relation managers to the getRelations function and in the ManagesRelationManager class add the following function: |
Beta Was this translation helpful? Give feedback.
-
nice! thank you for the help! its on the documentation too |
Beta Was this translation helpful? Give feedback.
-
Package
Panel builder
Package Version
3
How can we help you?
is there a way to do this? i cant call the ownerRecord
public static function getRelations(): array
{
if ( $this->title == 'Employee' ) {
return [
RelationManagers\ManageByRelationManager::make(),
];
} else {
return [
RelationManagers\ManagesRelationManager::make(),
RelationManagers\ManageByRelationManager::make(),
];
}
}
Beta Was this translation helpful? Give feedback.
All reactions