• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Soft delete doesn't work with like?

#8
(11-02-2019, 10:57 AM)edica Wrote: So would it be better to use only the Query Builder Class?

I think the idea was to have a few Model methods for some very frequently needed tasks related to basic CRUD operations. I don't know that these were intended to "look" or fully behave like Builder functions for implementing more complex CRUD ops. Looks like you're able to make it work so that's a good thing. If you can make it do what you need then why not use it?

While we're talking about Model vs Builder, it might be smart to keep in mind that the Model's "write" functions (insert, update, etc) are more than simple wrappers around Builder methods of the same name, nor are they using
__call() "magic" to get to Builder methods. So make sure you understand what the core code is doing before trying to chain Model methods with Builder methods.
Reply


Messages In This Thread
Soft delete doesn't work with like? - by edica - 10-29-2019, 07:51 AM
RE: Soft delete doesn't work with like? - by dave friend - 11-02-2019, 11:55 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.