code: public function hydrate(array $data, $object)
      {
          if (!$object instanceof VoteSites) {
              throw new Exception('$object must be an instance of VoteSites');
          }
  
          return parent::hydrate($data, $object);
      }
docs: Hydrate $object with the provided $data.
  
  @param  array $data
  @param  object $object
  
  @return VoteSites
  @throws Exception