original_string: public function isCreate()
      {
          $primary = $this->primaryKey();
          foreach ($primary as $column) {
              if (!empty($this->_context['defaults'][$column])) {
                  return false;
              }
          }
  
          return true;
      }
code: public function isCreate()
      {
          $primary = $this->primaryKey();
          foreach ($primary as $column) {
              if (!empty($this->_context['defaults'][$column])) {
                  return false;
              }
          }
  
          return true;
      }
code_tokens: public function isCreate ( ) { $ primary = $ this -> primaryKey ( ) ; foreach ( $ primary as $ column ) { if ( ! empty ( $ this -> _context [ 'defaults' ] [ $ column ] ) ) { return false ; } } return true ; }
docstring: Returns whether or not this form is for a create operation.
  
  For this method to return true, both the primary key constraint
  must be defined in the 'schema' data, and the 'defaults' data must
  contain a value for all fields in the key.
  
  @return bool
docstring_tokens: Returns whether or not this form is for a create operation .