public function loadBean($id)
    {
        if ($this->currentBean != null) {
            throw new BeanNotNullException();
        }

        $this->currentBean = R::load($this->tableName, $id);
    }
public function loadBean($id)
    {
        if ($this->currentBean != null) {
            throw new BeanNotNullException();
        }

        $this->currentBean = R::load($this->tableName, $id);
    }
public function loadBean ( $ id ) { if ( $ this -> currentBean != null ) { throw new BeanNotNullException ( ) ; } $ this -> currentBean = R :: load ( $ this -> tableName , $ id ) ; }
Load a bean.
For Edit and Create only.
Before rendering the edit or Create page, you have to load a bean first.
@param $id
@throws BeanNotNullException You can load one time only.
Load a bean . For Edit and Create only . Before rendering the edit or Create page you have to load a bean first .