Just curious to know What is use of setIsObjectNew while saving a model factory object, I see most of the time while creating console command it's set to true ?

Below is sample code used in Console command execute method:

$item = $this->itemFactory->create();



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.