Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public function getAmounts()
  2. {
  3. return $this->hasMany(Amounts::className(), ['product_id' => 'id']);
  4. }
  5.  
  6. <?=$form->field($model->amounts, 'amount')->textInput(['class' => 'form-control m-input', 'placeholder' => ''])->label(false)?>
  7.  
  8. Call to a member function isAttributeRequired() on array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement