protected function loadData($offset)
    {
        if (!$this->loaded && !$this->isNew) {
            if (is_numeric($offset) || is_null($offset)) {
                $this->findAll();
            } else {
                $this->find();
            }
        }
    }
protected function loadData($offset)
    {
        if (!$this->loaded && !$this->isNew) {
            if (is_numeric($offset) || is_null($offset)) {
                $this->findAll();
            } else {
                $this->find();
            }
        }
    }
protected function loadData ( $ offset ) { if ( ! $ this -> loaded && ! $ this -> isNew ) { if ( is_numeric ( $ offset ) || is_null ( $ offset ) ) { $ this -> findAll ( ) ; } else { $ this -> find ( ) ; } } }
Load record by array offset

@param int|string $offset
Load record by array offset