DoctrineEncryptBundle icon indicating copy to clipboard operation
DoctrineEncryptBundle copied to clipboard

Migrate existing data

Open nicolaskern opened this issue 9 years ago • 2 comments

Hi,

Is there a built-in way to update the existing data to be able to encode them in database? My problem is that I can't loose the existing data and need to encode them.

One solution would be to create a Symfony command which would get the non-encoded data, retrieve the entity and use the regular setter.

Thanks, Nicolas

nicolaskern avatar Dec 02 '15 10:12 nicolaskern

Hello nicolaskern,

You should dig into this fork which provides what you're looking for. https://github.com/ambta/DoctrineEncryptBundle

You'll find command to encrypt your whole database.

BboyKeen avatar Feb 15 '16 00:02 BboyKeen

Hey,

I actually dug https://github.com/juliencharrel/DoctrineEncryptBundle which is doing things fine.

Thanks ;)

nicolaskern avatar Feb 15 '16 09:02 nicolaskern