removed string from restriction
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user