I trying to show wallet names (alias data) in the select box.....In the "using" attribute i want set the wallettype_id with wallettype_name which is defined in other model...How to do this??
$wallet = new Select('wallet[]', CorporateWalletRelation::find(array("([corporate_id] =:corporate_id:) AND ([is_active] = :is_active:)", 'bind' => array('corporate_id' => $corporate_id, 'is_active' => 1))),
array(
'using' => array('wallettype_id', 'wallettypes->wallettype->name'),
'multiple' => 'multiple',
));
$wallet->setAttribute('id', 'wallettypes');
$wallet->setLabel('Wallet Type');
$this->add($wallet);