Hi,
I have these schema and testa data:
sfGuardUser:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
username:
type: string(128)
notnull: true
unique: true
algorithm:
type: string(128)
default: sha1
notnull: true
salt: string(128)
password: string(128)
is_active:
type: boolean
default: 1
is_super_admin:
type: boolean
default: 0
last_login:
type: timestamp
indexes:
is_active_idx:
fields: [is_active]
relations:
groups:
class: sfGuardGroup
local: user_id
foreign: group_id
refClass: sfGuardUserGroup
foreignAlias: Users
permissions:
class: sfGuardPermission
local: user_id
foreign: permission_id
refClass: sfGuardUserPermission
foreignAlias: Users
Friends:
class: sfGuardUser
local: user1
foreign: user2
refClass: FriendReference
equal: true
sfGuardUserProfile:
columns:
sf_guard_user_id: integer(4)
nombre: { type: string(60) }
fotografia: { type: string(255) }
descripcion: { type: string(4000) }
relations:
User:
class: sfGuardUser
foreignType: one
#TEST DATA
sfGuardUser:
sgu_admin:
username: fernando
password: m
is_super_admin: true
sfGuardUserProfile:
nombre: Fernando
fotografia: fernando_salgado_siguenza.jpg
descripcion: |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut
As you can see at the end this is written at the end of the schema:
relations:
User:
class: sfGuardUser
foreignType: one
If i dont write those lines, after doing "doctrine:build-all-reload" i
get this error:
Unknown method sfGuardUser::setSfguarduserprofile
After reading this:
http://www.doctrine-project.org/documentation/manual/1_0/en/yaml-schema-files#abbreviated-syntax
i thought those lines would be verbosity.
Do you know why i NEED to write those lines?
Regards
Javi
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---