problem of getBelongsTo

i'm using 0.9.x

a model with two belongsTo : public function initialize() {
$this->belongsTo("studentid", "Account", "id", array('alias' => 'StudentData')); $this->belongsTo("coachid", "Account", "id"), array('alias' => 'CoachData'); }

getBelongsTo( ) return Array ( [Account] => Array ( [fi] => studentid [rt] => Account [rf] => id [op] => Array([alias] => StudentData) ) ) coachid is disappear, It should be like Array ( [Account] => Array( ( [fi] => studentid [rt] => Account [rf] => id [op] => Array([alias] => StudentData) ), ( [fi] => coachid [rt] => Account [rf] => id [op] => Array([alias] => CoachData) ) )



83.4k

Hi, forum is not intended to report bugs, could you please post this on Github? https://github.com/phalcon/cphalcon/issues

of course, thank u :)