Hi,
i have this schema below. My problem: the field "id" in the table
"amigo_usuario" is not created .
Any idea?
Usuario:
inheritance:
extends: sfGuardUser
type: simple
columns:
nombre_apellidos: string(60)
sexo: boolean
fecha_nac: date
provincia: string(60)
localidad: string(255)
email_address: string(255)
fotografia: string(255)
avatar: string(255)
avatar_mensajes: string(255)
relations:
Usuario:
local: user1_id
foreign: user2_id
refClass: AmigoUsuario
equal: true
AmigoUsuario:
columns:
user1_id:
type: integer(4)
primary: true
user2_id:
type: integer(4)
primary: true
estado:
type: integer
default: 0
relations:
User1:
class: Usuario
local: user1_id
foreignAlias: AmigosUsuario
onDelete: CASCADE
User2:
class: Usuario
local: user2_id
foreignAlias: AmigosUsuario
onDelete: CASCADE
Javi
--
You received this message because you are subscribed to the Google Groups "symfony
users" group.
To post to this group, send email to symfony-us...@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.