public function toArray()
    {
        if ($this->getState() == self::STATE_DELETED) {
            throw new Exception\LogicException(__METHOD__ . ": Logic exception, cannot operate on record that was deleted");
        }
        return (array) $this->_securedFieldForArrayAccess['data'];
    }
public function toArray()
    {
        if ($this->getState() == self::STATE_DELETED) {
            throw new Exception\LogicException(__METHOD__ . ": Logic exception, cannot operate on record that was deleted");
        }
        return (array) $this->_securedFieldForArrayAccess['data'];
    }
public function toArray ( ) { if ( $ this -> getState ( ) == self :: STATE_DELETED ) { throw new Exception \ LogicException ( __METHOD__ . ": Logic exception, cannot operate on record that was deleted" ) ; } return ( array ) $ this -> _securedFieldForArrayAccess [ 'data' ] ; }
Return an array version of the record

@throws Exception\LogicException when the record has been deleted
@return array
Return an array version of the record