255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'attr_group_name' => 'Attr Group Name', 'is_delete' => 'Is Delete', ]; } private $attrList; public function getAttrList() { if ($this->attrList) { return $this->attrList; } $this->attrList = Attr::findAll(['is_delete' => 0, 'attr_group_id' => $this->id]); return $this->attrList; } }