public function getDocDetailes() { return $this->hasMany(Docdetails::className(), array('doc_id' => 'id')); }