500 | Internal Server Error | Doctrine_Record_UnknownPropert

Discussion relating to version 1.3.x and 1.4.x

500 | Internal Server Error | Doctrine_Record_UnknownPropert

Postby suriyakala » Tue Apr 10, 2012 6:43 am

Hi all,

I am new in symfony.i copied the my online site to localhost.online working well.but.after user login page the below error was comming.the same code work fine in online server.i change the friendend_dev.php instead of index.php.

500 | Internal Server Error | Doctrine_Record_UnknownPropertyException
Unknown record property / related component "id" on "Layer"
what is the problem.


plz help me urgent deadline
This is the my schema.yml files.

##########
# USER
##########
Personal:
columns:
user_id: { type: integer, notnull: true }
full_name: { type: string(255), notnull: true }
sex: { type: integer(1), notnull: true } #use constant value, 1 = Male, 2 = Female
birth_date: { type: date, notnull: true }
relationship_status: { type: integer(1), notnull: true } #use constant value, 1 = Single, 2 = In a relationship, 3 = Engaged, 4 = Married, 5 = It's complicated, 6 = In an open relationship, 7 = Widowed, 8 = Separated, 9 = Divorced
country_id: { type: integer }
zone_id: { type: integer }
occupation: { type: string(255) }
education: { type: string(255) }
hobbies: { type: string(255) }
professional_interests: { type: string(255) }
about_me: { type: string(1000) }
alias: { type: string(255), notnull: true }
primary_album_id: { type: integer }
primary_layer_id: { type: integer }
profile_picture_id: { type: integer }
alias_picture_id: { type: integer }
relations:
User: { class: sfGuardUser, foreign: id,local: user_id,type:one, onDelete: CASCADE }
Country: { local: country_id, foreign: id, onDelete: SET NULL }
Zone: { local: zone_id, foreign: id, onDelete: SET NULL }
PrimaryAlbum: { class: Album, local: primary_album_id, onDelete: SET NULL }
PrimaryLayer: { class: Layer, local: primary_layer_id,foreign: id, onDelete: CASCADE }
ProfilePicture: { class: Picture, local: profile_picture_id, onDelete: SET NULL }
AliasPicture: { class: Picture, local: alias_picture_id, onDelete: SET NULL }

Layer:
columns:
id: {type: integer, notnull: true }
personal_id: { type: integer, notnull: true }
name: { type: string(255), notnull: true }
picture_id: { type: integer, primary: true }

privacy_setting: { type: string(64), notnull: true }
relations:
Personal: { local: personal_id, foreign: id, onDelete: CASCADE }
suriyakala
Junior Member
 
Posts: 6
Joined: Tue Apr 10, 2012 6:33 am

Re: 500 | Internal Server Error | Doctrine_Record_UnknownPro

Postby Daco » Tue Apr 17, 2012 7:32 pm

Try changing

Code: Select all
Personal:
..
relations:
..
  PrimaryLayer:   { class: Layer, local: primary_layer_id,foreign: id, onDelete: CASCADE }
..


with

Code: Select all
Personal:
..
relations:
..
  Layer:   { class: Layer, local: primary_layer_id, foreign: id, onDelete: CASCADE}
..
Daco
Junior Member
 
Posts: 2
Joined: Thu Apr 05, 2012 6:48 pm
Location: Padua - Italy

Re: 500 | Internal Server Error | Doctrine_Record_UnknownPro

Postby suriyakala » Wed Apr 18, 2012 4:27 am

Hi
Daco,

i changed but still same problem was comming.plz give me any idea,this is the online site,i copied to localdrive.online working gud.
suriyakala
Junior Member
 
Posts: 6
Joined: Tue Apr 10, 2012 6:33 am


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 7 guests