This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

sfDoctrineGuard can work with existing database tables?

Questions relating to sfGuardPlugin or other user management plugins

sfDoctrineGuard can work with existing database tables?

by egger » Mon Sep 19, 2011 9:16 pm

Hi all!
I'm new in Symfony, I have done Jobeet tutorial already.
I'm starting with my first big project using Symfony.

The problem is, that I created my own table in database to manage users and I don't want to use sfGuardUser etc. tables. How to config sfGuard to work with my own table?

here is the table:

user:
user_id
title
name
surname
email
password
salt
....

Thank you in advance for help!
Regards,
egger
egger
Junior Member
 
Posts: 1
Joined: Mon Sep 19, 2011 9:05 pm

Re: sfDoctrineGuard can work with existing database tables?

by rmm » Fri Mar 02, 2012 2:10 pm

Hello egger,

I have the same situation just like yours. Have you work out in configuring sfDoctrineGuard with your own table?
Could you help me with these? Thank you very much.

regards,
rmm.
rmm
Junior Member
 
Posts: 5
Joined: Thu Feb 23, 2012 1:47 pm

Re: sfDoctrineGuard can work with existing database tables?

by RobinKanters » Thu Apr 12, 2012 12:50 pm

I think you'd have to copy the database structure into your config/schema.yml and build (doctrine:build) everything except for the database.
R.
RobinKanters
Junior Member
 
Posts: 13
Joined: Sun May 22, 2011 9:40 pm

Re: sfDoctrineGuard can work with existing database tables?

by Zhah001 » Sat Nov 22, 2014 11:24 am

worked out what I was doing wrong, I had my frontend application is_secure set to true, thus when trying to access the plugin modules I was redirected to the login form, and when I logged in the module code redirected me to the homepage, very trivial but cost me a few hours!!
Evil
Zhah001
Junior Member
 
Posts: 1
Joined: Sat Nov 22, 2014 11:06 am