Yii Framework Forum: Foreign key - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Foreign key Rate Topic: -----

#1 User is offline   kitty10 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 139
  • Joined: 13-April 10

Posted 08 May 2010 - 01:45 AM

How should I set the foreign keys of a table?
In the method public function relations ()?

'comune1'=>array(self::HAS_MANY, 'anagrafe', 'COMUNE_COMUNE_ID') 


But sometimes gives me the error and sometimes not and why?
I was wrong to set the relation?
0

#2 User is offline   kitty10 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 139
  • Joined: 13-April 10

Posted 08 May 2010 - 04:50 AM

CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 20999 OCIStmtExecute: ORA-20999: TAPI-1005:Violata chiave esterna ANAGRA_COMUNE_FK della tabella ANAGRAFE
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users