Create the table female first

On Thu, Apr 14, 2011 at 4:24 AM, Julian <julian.reyes.escri...@gmail.com>wrote:

> Hi
>
> i have a problem with a table and concrete inheritance, example:
>
> <table name="person" abstract="true">
>   <column name="id" type="integer" required="true" primaryKey="true"
> autoIncrement="true" />
>   <column name="first" type="varchar" size="255" required="true"
> primaryString="true" />
>   <column name="last" type="varchar" size="255" required="true"
> primaryString="true" />
> </table>
>
> <table name="female" abstract="true">
>   <behavior name="concrete_inheritance">
>     <parameter name="extends" value="person" />
>   </behavior>
>   <column name="has_child" type="boolean" required="true" />
> </table>
>
> <table name="child" abstract="true">
>   <behavior name="concrete_inheritance">
>     <parameter name="extends" value="person" />
>   </behavior>
>   <column name="mother_id" type="integer" required="true" />
>   <foreign-key foreignTable="female">
>     <reference local="mother_id" foreign="id"/>
>   </foreign-key>
> </table>
>
> ok, when i try the command *propel:build*  throw the
>
> ERROR!! Attempt to set foreign key to nonexistent column, id, in table,
>> female!
>
>
> how to fix
>
>
> --
> Si la depuración es el proceso de eliminar errores, entonces la
> programación debe ser el proceso de introducirlos
> – Edsger W. Dijkstra
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc
identi.ca: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to