public function jsonSerialize()
    {
        $data = $this->getData();
        $data['binary'] = '';
        $data['mail'] = $this->getMail()->getId();

        return $data;
    }
public function jsonSerialize()
    {
        $data = $this->getData();
        $data['binary'] = '';
        $data['mail'] = $this->getMail()->getId();

        return $data;
    }
public function jsonSerialize ( ) { $ data = $ this -> getData ( ) ; $ data [ 'binary' ] = '' ; $ data [ 'mail' ] = $ this -> getMail ( ) -> getId ( ) ; return $ data ; }
Return all data, except binary

@return array
Return all data except binary