Category Archives: Web Development

Create Your Own Symfony2 Password Encoder

If you ever needed to migrate an old project’s users to Symfony2, you probably needed to preserve their passwords. As the passwords are encoded using a specific algorithm, you have to configure your new Symfony2 project to use exactly the same method in order for the old passwords work.

Find out how to do this in this new blog post: How to Create a Custom Symfony2 Password Encoder

Fix SoftDeletable Doctrine Entities with Unique Index Columns (Symfony2)

If you are using the Gedmo SoftDeletable Doctrine extension for entities that have some unique index columns, you will probably encounter a MySQL error when trying to add new entity with the same values as one previously deleted:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ... for key …

Find out how to avoid this by reading this post: Symfony2: Gedmo SoftDeletable Doctrine Entities with Unique Index Columns.