[RSS Feed/News] Is it possible to bypass preSave() of a custom entity?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Let's say via my addon, I have to update an entity and in this specific scenario when I call save(), I do not want the preSave() function to run that I've defined in the Entity's class. Is this doable?

PHP:

Code:
$foo = $this->assertRecordExists('Asprin\FB:Foo', 123456, null, null);
$foo->bar = 'all is well';
$foo->save(); // now this should not call the preSave() function defined on Asprin\FB:Foo

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom