public function tryLoadBy($field, $cond = UNDEFINED, $value = UNDEFINED)
    {
        try {
            $this->loadBy($field, $cond, $value);
        } catch (Exception_NotFound $e) {
            // ignore not-found exception
        }

        return $this;
    }
public function tryLoadBy($field, $cond = UNDEFINED, $value = UNDEFINED)
    {
        try {
            $this->loadBy($field, $cond, $value);
        } catch (Exception_NotFound $e) {
            // ignore not-found exception
        }

        return $this;
    }
public function tryLoadBy ( $ field , $ cond = UNDEFINED , $ value = UNDEFINED ) { try { $ this -> loadBy ( $ field , $ cond , $ value ) ; } catch ( Exception_NotFound $ e ) { // ignore not-found exception } return $ this ; }
Adding temporally condition to the model to retrive the first record
The condition specified is removed after the controller data call.

@param $field
@param $cond
@param $value

@return $this
Adding temporally condition to the model to retrive the first record The condition specified is removed after the controller data call .