On Nov 1, 4:11 pm, "Nicolas Perriault" <[EMAIL PROTECTED]>
wrote:
> On 11/1/07, Ámon Tamás <[EMAIL PROTECTED]> wrote:
>
> > What is the easy way to make a registration form with e-mail adress
> > validation forsfGuardplugin?
>
> The quickest way is to read the
> documentation:http://trac.symfony-project.com/wiki/sfGuardPlugin#CustomizethesfAuth...http://trac.symfony-project.com/wiki/sfGuardPlugin#CustomizesfGuardAu...
I have read and reread this doc with no luck.
I THINK the issue is that I apt for schema.xml.
I have
<table name="Contact" skipSql="null" abstract="null">
<column name="id" autoIncrement="true" type="INTEGER"
required="true" primaryKey="true" autoincrement="true"/>
<column name="contacttype_id" type="INTEGER" size="1"/>
<foreign-key foreignTable="ContactType" onDelete="none"
onUpdate="none">
<reference local="contacttype_id" foreign="id"/>
</foreign-key>
<column name="user_id" type="INTEGER" />
<foreign-key foreignTable="sf_guard_user" onDelete="cascade"
onUpdate="none">
<reference local="user_id" foreign="id"/>
</foreign-key>
<column name="first_name" type="VARCHAR" size="255"/>
<column name="last_name" type="VARCHAR" size="255"/>
<column name="address" type="VARCHAR" size="255"/>
<column name="address2" type="VARCHAR" size="255"/>
<column name="city" type="VARCHAR" default="Boston" size="255"/>
<column name="state" type="VARCHAR" default="MA" size="2"/>
<column name="zip" type="VARCHAR" size="11"/>
<column name="phone" type="VARCHAR" size="15"/>
<column name="agency_id" type="INTEGER" size="1"/>
<foreign-key foreignTable="Agency" onDelete="none"
onUpdate="none">
<reference local="agency_id" foreign="id"/>
</foreign-key>
<column name="created_on" type="TIMESTAMP"/>
<column name="updated_on" type="TIMESTAMP"/>
</table>
but symfony propel-build-all admin gives me;
propel > om-template:
[propel-om] Target database type: mysql
[propel-om] Target package: lib.model
[propel-om] Using template path: /usr/share/php/symfony/vendor/propel-
generator/templates
[propel-om] Output directory: /home/dclark/wep
[propel-om] Processing: schema.xml
[propel-om] Processing: generated-sfGuardPlugin-schema.xml
Execution of target "om-template" failed for the following reason: /
usr/share/php/symfony/vendor/propel-generator/build-propel.xml:470:1:
ERROR!! Attempt to set foreign key to nonexistent table,
sf_guard_user!
[phingcall] /usr/share/php/symfony/vendor/propel-generator/build-
propel.xml:470:1: ERROR!! Attempt to set foreign key to nonexistent
table, sf_guard_user!
any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---