-
Beta Was this translation helpful? Give feedback.
Answered by
armandino
Feb 1, 2025
Replies: 1 comment 1 reply
-
|
I should probably document this better. This is because because of precedence for the different methods. These are ranked from highest to lowest:
You can workaround this by changing the model to use Alternatively, you can replace Account account = Instancio.of(accountModel)
.assign(Assign.valueOf(Account::getOrder).set(2))
.create(); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mmefremov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I should probably document this better. This is because because of precedence for the different methods. These are ranked from highest to lowest:
assign()set()andsupply()generate()You can workaround this by changing the model to use
generate()instead ofset().Alternatively, you can replace
set()withassign()when creating an object from the model: