Yii Framework Forum: Saving Relational Records - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Saving Relational Records

#1 User is offline   JayRoe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 03-April 09

Posted 04 November 2013 - 10:04 AM

I read that Yii 2 will support saving of relational records, but what is the correct practice for doing so?

$form->field($parent, 'child[name]')->textInput()


Yii accepts the above child[name] attribute, but doesn't seem to actually assign the values to the child class attributes on $model->load($_POST);
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users