dev-master
9999999-devrelatedentities
GPL-3.0+
The Requires
- php >=7.0.0
- yiisoft/yii2 ~2.0.0
by Zlakomanov Alexander
extension yii2
v0.1
0.1.0.0relatedentities
GPL-3.0+
The Requires
by Zlakomanov Alexander
extension yii2
relatedentities
relatedentities, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist zlakomanoff/yii2-related-entities "*"
or add, (*4)
"zlakomanoff/yii2-related-entities": "*"
to the require section of your composer.json
file., (*5)
view, (*6)
or 'zlakomanoff\relatedentities\RelatedEntitiesActiveField' ]); ?> = $form->field($model, 'videos')->relation('//videos/_form_related') ?>
model, (*7)
class MyRecord extends \zlakomanoff\relatedentities\RelatedActiveRecord { public function rules() { return [ [['field1', 'field2'], 'relation'] ]; } public function getField1() { return $this->hasMany(MyField1::class, ['id' => 'field1_id']); } public function getField2() { return $this->hasMany(MyField2::class, ['id' => 'field2_id']); } }
relatedentities
GPL-3.0+
extension yii2
relatedentities
GPL-3.0+
extension yii2