You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2019. It is now read-only.
I'm trying to change the address of the store, but nothing is happening. The backoffice says that the store is saved, but in database, no changes are done.
It seems like the relation between Store and Address is missing the cascade attribute, but even with this attribute, it is not working.
If someone has an idea. I try to make a PR if I find a solution.
Thanks
The text was updated successfully, but these errors were encountered:
The problem seems to be in the StoreBundle\Controller\StoreController :
/** * Save store and add success flash * * @param StoreInterface $store Store * * @return $this Self object */privatefunctionsaveStoreAndAddFlash(StoreInterface$store)
{
// replacing this existing code$this
->get('elcodi.object_manager.store')
->flush($store);
// by this one will save the address changes in database$this
->get('elcodi.object_manager.store')
->persist($store);
$this
->get('elcodi.object_manager.store')
->flush();
$this->addFlash(
'success',
'admin.store.saved'
);
return$this;
}
Hi,
I'm trying to change the address of the store, but nothing is happening. The backoffice says that the store is saved, but in database, no changes are done.
It seems like the relation between Store and Address is missing the cascade attribute, but even with this attribute, it is not working.
If someone has an idea. I try to make a PR if I find a solution.
Thanks
The text was updated successfully, but these errors were encountered: