F
Filament3w ago
flex

getOwnerRecord() in Action

I moved an action from a RelationManager to an own class extending Tables\Actions\Action. In the form() method of this action I used getOwnerRecord() successfuly when I had it directly in the RelationManager. Now, in the class it says getOwnerRecord method does not exist, and when using getRecord() it's null. How can I access the current record in a custom action class? Thanks!
1 Reply
flex
flexOP3w ago
At the moment I am using $this->getRecord() in form() and action() successfully in my table action in a View* Page. But as I move the code into a class extending tables Action, it doesn't work anymore. Is there a solution?

Did you find this page helpful?