func (o *Search) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}

	so := sparse.(*SparseSearch)
	if so.Object != nil {
		o.Object = *so.Object
	}
	if so.ObjectID != nil {
		o.ObjectID = *so.ObjectID
	}
	if so.ObjectIdentity != nil {
		o.ObjectIdentity = *so.ObjectIdentity
	}
	if so.ObjectNamespace != nil {
		o.ObjectNamespace = *so.ObjectNamespace
	}
	if so.Score != nil {
		o.Score = *so.Score
	}
}
// Patch apply the non nil value of a *SparseSearch to the object.
Patch apply the non nil value of a *SparseSearch to the object.
// Patch apply the non nil value of a * SparseSearch to the object .
func (o *Search) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseSearch)
	if so.Object != nil {
		o.Object = *so.Object
	}
	if so.ObjectID != nil {
		o.ObjectID = *so.ObjectID
	}
	if so.ObjectIdentity != nil {
		o.ObjectIdentity = *so.ObjectIdentity
	}
	if so.ObjectNamespace != nil {
		o.ObjectNamespace = *so.ObjectNamespace
	}
	if so.Score != nil {
		o.Score = *so.Score
	}
}
func ( o * Search ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseSearch ) if so . Object != nil { o . Object = * so . Object } if so . ObjectID != nil { o . ObjectID = * so . ObjectID } if so . ObjectIdentity != nil { o . ObjectIdentity = * so . ObjectIdentity } if so . ObjectNamespace != nil { o . ObjectNamespace = * so . ObjectNamespace } if so . Score != nil { o . Score = * so . Score } }
Patch apply the non nil value of a *SparseSearch to the object.
Patch apply the non nil value of a * SparseSearch to the object .