Search code examples
symfony-1.4sfguard

Installing sfGuard without changing db


I am to integrate sfGuard plugin with existing application. What I want to do is to keep as much code as possible untouched. Any guides? It'd be perfect if I can use actual database schema, or bind it somehow to be used by sfGuard. I know about setting userProfile class but I'm not sure how should I get to it, not to destroy my app.

Greetings


Solution

  • Just install plugin. And try make migrations. doctrine::generate-migrations-diff

    php symfony doctrine:generate-migrations-diff 
    

    And migrate php symfony doctrine:migrate :

    php symfony doctrine:migrate 
    

    Check out question: Rebuild model without loss data in MySQL for Symfony