This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » 500 | Internal Server Error | Doctrine_Record_UnknownPropertyException---Please help
500 | Internal Server Error | Doctrine_Record_UnknownPropertyException---Please help [message #99264] Tue, 18 May 2010 10:43 Go to next message
suraj  is currently offline suraj
Messages: 3
Registered: October 2009
Location: india
Junior Member

which is easy symfony 1.4 or prior series[ 1 vote(s) ]
1.1.x<1.4 1 / 100%
2.1.4 0 / 0%

Dear All,
I am new to symfony 1.4 so I am having a problem. My problem is when try to internationalize the forms an "500 | Internal Server Error | Doctrine_Record_UnknownPropertyException" is throwing and it expalins like "Unknown record property / related component "Translation" on "BwNews"" Sad I am stuck on this Please help. The portion of my schema.yml is shown below
and the full file is uploaded as an attachement.

BwNews:
tableName: bw_news
actAs:
Timestampable: ~
I18n:
fields: [news_title,news_description]
tableName: %TABLE%_i18n
actAs:
Sluggable: { fields: [news_title], uniqueBy: [lang, id] }
columns:
news_id:
type: integer(4)
fixed: false
unsigned: false
primary: true
autoincrement: true
news_title:
type: string(100)
news_description:
type: string()
news_file:
type: string()
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
news_location:
type: string()
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
news_expire:
type: date(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
news_created:
type: date(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false





And i have to put inernationalisation for bw_news table and the fields to inernationalised are news_title and news_description
what to do Please help..
I am uploading the schema.yml, and error screen image along with this message .
please help .I am in deep trouble.. Confused Sad

  • Attachment: error.GIF
    (Size: 45.44KB, Downloaded 42 time(s))

  • Attachment: schema.yml
    (Size: 37.16KB, Downloaded 80 time(s))

Re: 500 | Internal Server Error | Doctrine_Record_UnknownPropertyException---Please help [message #99265 is a reply to message #99264 ] Tue, 18 May 2010 11:03 Go to previous messageGo to next message
suraj  is currently offline suraj
Messages: 3
Registered: October 2009
Location: india
Junior Member
What I have done so far is ..

1.build database from schema.yml
2.generated model forms
3.Pasted the following code in

class BwNewsForm extends BaseBwNewsForm
{
public function configure()
{
$this->embedI18n(sfConfig::get('app_arr_lang'));
$this->widgetSchema->setLabel('en', 'English');
$this->widgetSchema->setLabel('fr', 'French');
}
}

4.Pasted the following code in template new

<?php foreach( $arrayLang as $id => $lang ) : ?>
<label><?php echo 'Type of Organization';?>:(<?php echo ucfirst($lang);?>)</label><?php echo $form[$lang]['title']; ?>
<label><?php echo 'Description';?>:(<?php echo ucfirst($lang);?>)</label><?php echo $form[$lang]['description']; ?>
<div class="clear"></div>
<?php endforeach ?>


5.set relations in database ie. bw_news->id is the related to id in bw_news_translation
6.symfony cc
6.build model
7.build forms
8.symfony cc

After this when i took the new news link , the above exception is shown,,,

Please help.......
Re: 500 | Internal Server Error | Doctrine_Record_UnknownPropertyException---Please help [message #99464 is a reply to message #99265 ] Thu, 20 May 2010 13:56 Go to previous message
suraj  is currently offline suraj
Messages: 3
Registered: October 2009
Location: india
Junior Member
Thank God I sorted it myself............ Very Happy Very Happy Very Happy Very Happy
Previous Topic:web/js directory and files not there
Next Topic:[Symfony 1.3] [Configuration files]
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software