public function serialize($object, array $options = [])
    {
        return $this->mapEntityToObject(
          $this->getSerializableProperties($object),
          $object,
          new \StdClass()
        );
    }
public function serialize($object, array $options = [])
    {
        return $this->mapEntityToObject(
          $this->getSerializableProperties($object),
          $object,
          new \StdClass()
        );
    }
public function serialize ( $ object , array $ options = [ ] ) { return $ this -> mapEntityToObject ( $ this -> getSerializableProperties ( $ object ) , $ object , new \ StdClass ( ) ) ; }
Default serialize method.

@param mixed $object
@param array $options

@return \stdClass
Default serialize method .