XF 2.0 Stop a _preSave function from running on import?

Jaxel

Well-known member
I'm using the XF2 importer system to create an entity. Normally, when creating an entity, I want specific things to run in _preSave(). However, when importing entities from the importer, I don't want these specific things to run. How can I let the entity system know to skip these steps when importing?
 
Generally I believe you're expected to use entity emulation in the importers. You can take a peak at the official importers to see how it's done, but essentially you subclass AbstractEmulatedData and use it when importing the data instead of a normal entity.
 
  • Like
Reactions: Xon
Back
Top Bottom