having this…
public function relations()
{
return array(
'post' => array(self::BELONGS_TO, 'Post', 'post_id'),
);
}
…is it possible to do something like this in an ActiveForm?:
<?php echo $form->textField($model,'post->attribute'); ?>
(and when clicking the button submit, it updates the table Post automatically)