You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linkable does not support defining an alternative join not using the primary key. Linkable should allow setting foreign key to false to alternatively define the relationship, see below:
(http://stackoverflow.com/questions/3814862/cakephp-model-relation)
public $hasOne = array(
'RelatedModel' => array(
'className' => 'RelatedModel',
'foreignKey' => false,
'conditions' => array(
'MainModel.random_field = RelatedModel.some_field'
)
)
}
The text was updated successfully, but these errors were encountered:
Linkable does not support defining an alternative join not using the primary key. Linkable should allow setting foreign key to false to alternatively define the relationship, see below:
(http://stackoverflow.com/questions/3814862/cakephp-model-relation)
public $hasOne = array(
'RelatedModel' => array(
'className' => 'RelatedModel',
'foreignKey' => false,
'conditions' => array(
'
MainModel
.random_field
=RelatedModel
.some_field
')
)
}
The text was updated successfully, but these errors were encountered: