I'm running an update on one of my custom modules to update a flag held in the core_flag table for 'account_code'.
I want to change the sequence of the code from being prefixed with 'E' to an 'X', so I'm starting the sequence again and to do this I'm using the following code in the script.
$installer = $this; $installer->startSetup(); Mage::getModel('core/flag', array('flag_code' => 'account_code'))- >setFlagData('X100001')->save(); $installer->endSetup();
The script has run succuessfully but it has created a second flag with a different ID but the same flag name.
Any idea how I would get it to update the flag data instead?
Many thanks, Shaun