diff --git a/include/orm/tiny/types/modelscollection.hpp b/include/orm/tiny/types/modelscollection.hpp index 5e2491af9..357aff5f4 100644 --- a/include/orm/tiny/types/modelscollection.hpp +++ b/include/orm/tiny/types/modelscollection.hpp @@ -204,9 +204,10 @@ namespace Types std::unordered_map mapWithKeys(const std::function(ModelRawType *)> &callback); - /*! Return only the models from the collection with specified keys. */ + /*! Return only the models from the collection with specified primary keys. */ ModelsCollection only(const std::unordered_set &ids); - /*! Return all models in the collection except the models with specified keys. */ + /*! Return all models in the collection except the models with specified + primary keys. */ ModelsCollection except(const std::unordered_set &ids); /*! Get a vector with the values in the given column. */ @@ -236,7 +237,7 @@ namespace Types the Model::is()). */ bool doesntContain(const std::optional &model); - /*! Find a model in the collection by key. */ + /*! Find a model in the collection by primary key. */ ModelRawType *find(KeyType id, ModelRawType *defaultModel = nullptr); /*! Find a model in the collection by another model (using its ID). */ ModelRawType * @@ -1514,7 +1515,7 @@ namespace Types const auto retrieved = attribute.template value(); static_assert (std::is_convertible_v, - "The retrieved attribute (using the key) is not convertible " + "The retrieved attribute value (using the key) is not convertible " "to the V type for comparison."); // Null or invalid attributes can't be handled in any other way anyway