@@ -3956,6 +3956,9 @@ func (s *ParentStore) Transaction(callback func(*ParentStore) error) error {
39563956// RemoveChildren removes the given items of the Children field of the
39573957// model. If no items are given, it removes all of them.
39583958// The items will also be removed from the passed record inside this method.
3959+ // Note that is required that `Children` is not empty. This method clears the
3960+ // the elements of Children in a model, it does not retrieve them to know
3961+ // what relationships the model has.
39593962func (s * ParentStore ) RemoveChildren (record * Parent , deleted ... * Child ) error {
39603963 var updated []* Child
39613964 var clear bool
@@ -4555,6 +4558,9 @@ func (s *ParentNoPtrStore) Transaction(callback func(*ParentNoPtrStore) error) e
45554558// RemoveChildren removes the given items of the Children field of the
45564559// model. If no items are given, it removes all of them.
45574560// The items will also be removed from the passed record inside this method.
4561+ // Note that is required that `Children` is not empty. This method clears the
4562+ // the elements of Children in a model, it does not retrieve them to know
4563+ // what relationships the model has.
45584564func (s * ParentNoPtrStore ) RemoveChildren (record * ParentNoPtr , deleted ... Child ) error {
45594565 var updated []Child
45604566 var clear bool
@@ -5228,6 +5234,9 @@ func (s *PersonStore) Transaction(callback func(*PersonStore) error) error {
52285234// RemovePets removes the given items of the Pets field of the
52295235// model. If no items are given, it removes all of them.
52305236// The items will also be removed from the passed record inside this method.
5237+ // Note that is required that `Pets` is not empty. This method clears the
5238+ // the elements of Pets in a model, it does not retrieve them to know
5239+ // what relationships the model has.
52315240func (s * PersonStore ) RemovePets (record * Person , deleted ... * Pet ) error {
52325241 var updated []* Pet
52335242 var clear bool
@@ -6670,6 +6679,9 @@ func (s *QueryFixtureStore) RemoveRelation(record *QueryFixture) error {
66706679// RemoveNRelation removes the given items of the NRelation field of the
66716680// model. If no items are given, it removes all of them.
66726681// The items will also be removed from the passed record inside this method.
6682+ // Note that is required that `NRelation` is not empty. This method clears the
6683+ // the elements of NRelation in a model, it does not retrieve them to know
6684+ // what relationships the model has.
66736685func (s * QueryFixtureStore ) RemoveNRelation (record * QueryFixture , deleted ... * QueryRelationFixture ) error {
66746686 var updated []* QueryRelationFixture
66756687 var clear bool
0 commit comments