[FLOW3-general] i don`t want to delete database field when i delete field from my model

Dawid Pacholczyk dpacholczyk at gmail.com
Wed Mar 14 17:55:18 CET 2012


W dniu 2012-03-14 11:19, Irene Höppner pisze:
>> Thanks that works. but what if i have in my team clumsy dev ? Can i
>> block doctrine:update ?
>
> Hi Dawid,
>
> as long as you didn't disable security you could add the following lines
> to the Policy.yaml:
>
> resources:
> methods:
> TYPO3_FLOW3_doctrineUpdateCommand:
> 'method(TYPO3\FLOW3\Command\DoctrineCommandController->updateCommand())'
>
>
>
> Then you should get an exception when trying to call the doctrine:update
> command (you might have to flush the cache).
> However this is just some kind of a workaround... not-clumsy devs would
> be better ;-).
>
> greets,
> Irene

Hi,
  this workkaround works for me :) Ofc that better not to have clumsy 
devs but come on...everybody makes a mistake someone. I want to 
minimalize that oportiunity :) Thank you very much

Best regards,
Dawid


More information about the FLOW3-general mailing list