removed string from restriction

This commit is contained in:
2025-12-09 21:13:47 +01:00
parent c4f8731262
commit 9b7b74524f
13 changed files with 86 additions and 166 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ public:
void on_foreign_key(const char *id, Pointer &/*x*/) {
const auto type = pk_type_determinator::determine<typename Pointer::value_type>();
auto &ref = object_->attributes_.emplace_back(id, type, utils::constraints::ForeignKey, null_option_type::NotNull);
ref.owner_ = object_.get();
ref.owner_ = object_;
}
template<class ContainerType>
static void on_has_many(const char * /*id*/, ContainerType &, const char *, const utils::foreign_attributes &/*attr*/) {}
@@ -101,7 +101,7 @@ private:
template<typename ValueType>
attribute &emplace_attribute(const char *id, const utils::field_attributes& attr, null_option_type null_option) {
auto &ref = object_->attributes_.emplace_back(id, utils::data_type_traits<ValueType>::type(attr.size()), attr, null_option);
ref.owner_ = object_.get();
ref.owner_ = object_;
return ref;
}
@@ -113,7 +113,7 @@ private:
void prepare_primary_key(attribute &ref, utils::identifier &&pk) const;
std::shared_ptr<class object> fk_object(const std::type_index& ti) const;
[[nodiscard]] std::shared_ptr<class object> fk_object(const std::type_index& ti) const;
private:
repository &repo_;