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
a model with two belongsTo :
public function initialize()
{
$this->belongsTo("student_id", "Account", "id", array('alias' => 'StudentData'));
$this->belongsTo("coach_id", "Account", "id"), array('alias' => 'CoachData');
}
getBelongsTo( ) return
Array (
[Account] => Array (
[fi] => student_id
[rt] => Account
[rf] => id
[op] => Array([alias] => StudentData)
)
)
coach_id is disappear, It should be like
Array (
[Account] => Array(
(
[fi] => student_id
[rt] => Account
[rf] => id
[op] => Array([alias] => StudentData)
),
(
[fi] => coach_id
[rt] => Account
[rf] => id
[op] => Array([alias] => CoachData)
)
)
The text was updated successfully, but these errors were encountered:
i'm using 0.9.x
a model with two belongsTo :
public function initialize()
{
$this->belongsTo("student_id", "Account", "id", array('alias' => 'StudentData'));
$this->belongsTo("coach_id", "Account", "id"), array('alias' => 'CoachData');
}
getBelongsTo( ) return
Array (
[Account] => Array (
[fi] => student_id
[rt] => Account
[rf] => id
[op] => Array([alias] => StudentData)
)
)
coach_id is disappear, It should be like
Array (
[Account] => Array(
(
[fi] => student_id
[rt] => Account
[rf] => id
[op] => Array([alias] => StudentData)
),
(
[fi] => coach_id
[rt] => Account
[rf] => id
[op] => Array([alias] => CoachData)
)
)
The text was updated successfully, but these errors were encountered: