Extract create and update to new method #1162
nuradiyana
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Hey, what is the custom code you're using instead? You can likely do this already using the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First I say thank you for this project, I really like this.
Imagine there are two tables,
customers
andorders
, usually we will first createcustomer
data, then we makeorders
by selectingcustomer
data usingSelect
.But what if I want to create
customers
andorders
together in one form? The current solution, I do override thecreate
method. But the changes I made were only on this lineHow about extract this two line to dedicated
protected
method, furthermore, if there is a custom, maybe using a dedicatedaction
orrepository
class, it is enough to just override the method.Trims
Note: sorry for my bad english
Beta Was this translation helpful? Give feedback.
All reactions