protected function getKeyName()
    {
        if (is_null($this->form)) {
            return;
        }

        return $this->form->model()->{$this->relationName}()->getRelated()->getKeyName();
    }
protected function getKeyName()
    {
        if (is_null($this->form)) {
            return;
        }

        return $this->form->model()->{$this->relationName}()->getRelated()->getKeyName();
    }
protected function getKeyName ( ) { if ( is_null ( $ this -> form ) ) { return ; } return $ this -> form -> model ( ) -> { $ this -> relationName } ( ) -> getRelated ( ) -> getKeyName ( ) ; }
Get the HasMany relation key name.

@return string
Get the HasMany relation key name .