original_string: protected function _fieldsAreNull($entity, $source)
      {
          $nulls = 0;
          $schema = $source->getSchema();
          foreach ($this->_fields as $field) {
              if ($schema->getColumn($field) && $schema->isNullable($field) && $entity->get($field) === null) {
                  $nulls++;
              }
          }
  
          return $nulls === count($this->_fields);
      }
code: protected function _fieldsAreNull($entity, $source)
      {
          $nulls = 0;
          $schema = $source->getSchema();
          foreach ($this->_fields as $field) {
              if ($schema->getColumn($field) && $schema->isNullable($field) && $entity->get($field) === null) {
                  $nulls++;
              }
          }
  
          return $nulls === count($this->_fields);
      }
code_tokens: protected function _fieldsAreNull ( $ entity , $ source ) { $ nulls = 0 ; $ schema = $ source -> getSchema ( ) ; foreach ( $ this -> _fields as $ field ) { if ( $ schema -> getColumn ( $ field ) && $ schema -> isNullable ( $ field ) && $ entity -> get ( $ field ) === null ) { $ nulls ++ ; } } return $ nulls === count ( $ this -> _fields ) ; }
docstring: Checks whether or not the given entity fields are nullable and null.
  
  @param \Cake\Datasource\EntityInterface $entity The entity to check.
  @param \Cake\ORM\Table $source The table to use schema from.
  @return bool
docstring_tokens: Checks whether or not the given entity fields are nullable and null .