public function isCreate()
    {
        $primary = $this->primaryKey();
        foreach ($primary as $column) {
            if (!empty($this->_context['defaults'][$column])) {
                return false;
            }
        }

        return true;
    }
public function isCreate()
    {
        $primary = $this->primaryKey();
        foreach ($primary as $column) {
            if (!empty($this->_context['defaults'][$column])) {
                return false;
            }
        }

        return true;
    }
public function isCreate ( ) { $ primary = $ this -> primaryKey ( ) ; foreach ( $ primary as $ column ) { if ( ! empty ( $ this -> _context [ 'defaults' ] [ $ column ] ) ) { return false ; } } return true ; }
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
Returns whether or not this form is for a create operation .