Cfwheels validation methods

56 views
Skip to first unread message

Anna

unread,
Mar 1, 2022, 4:58:38 AM3/1/22
to CFWheels
I have 'validatesNumericalityOf' and  'validate()' methods in my model init() method.
But whatever the order i write these validation methods, I see that that validate() runs first and validatesNumericalityOf runs later.
But I want the reverse to happen.
Is there any preferance in which cfwheels runs tha validation methods. Thanks

Andrew Bellenie

unread,
Mar 1, 2022, 6:13:40 AM3/1/22
to ColdFusion on Wheels
I don't think there's any way you can change the order that callback methods run in.

Why do you need to change it? If I understand the use case I might be able to suggest a solution.

--
You received this message because you are subscribed to the Google Groups "CFWheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cfwheels/447f7ab5-b27d-4c14-9cc4-0d1be8003eb7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages