original_string: public function toDatabase($value, Driver $driver)
      {
          if ($value === null || $value === '') {
              return null;
          }
  
          return parent::toDatabase($value, $driver);
      }
code: public function toDatabase($value, Driver $driver)
      {
          if ($value === null || $value === '') {
              return null;
          }
  
          return parent::toDatabase($value, $driver);
      }
code_tokens: public function toDatabase ( $ value , Driver $ driver ) { if ( $ value === null || $ value === '' ) { return null ; } return parent :: toDatabase ( $ value , $ driver ) ; }
docstring: Casts given value from a PHP type to one acceptable by database
  
  @param mixed $value value to be converted to database equivalent
  @param \Cake\Database\Driver $driver object from which database preferences and configuration will be extracted
  @return string|null
docstring_tokens: Casts given value from a PHP type to one acceptable by database