Hi, is there any option to prevent the use of the default insert/update... method?
I want to do insert and updates manually on before_insert/update callback because I've a specific method for that.
Thanks.
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 20 July 2017 - 13:27 PM
Hi, is there any option to prevent the use of the default insert/update... method?
I want to do insert and updates manually on before_insert/update callback because I've a specific method for that.
Thanks.
Posted 21 July 2017 - 01:02 AM
John have designed the library very well keeping in mind many possibilities. And yes, what you seeking for is very much possible. You may refer to the documentation for further details .. but there is option for callback_insert / callback_update allowing you to handle the insert / update the way you want.
Happy GCing :)
Posted 21 July 2017 - 07:46 AM
John have designed the library very well keeping in mind many possibilities. And yes, what you seeking for is very much possible. You may refer to the documentation for further details .. but there is option for callback_insert / callback_update allowing you to handle the insert / update the way you want.
Happy GCing :)
Omg, thanks! I didn't see it :( Was focused on callback before and after insert and not on callback_insert haha