object generation progress
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "matador/object/repository.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace matador::object {
|
||||
object_generator::object_generator( const repository& repo, std::unique_ptr<object>&& object )
|
||||
: repo_(repo)
|
||||
@@ -47,7 +49,7 @@ void object_generator::create_unique_constraint(const std::string& name) const {
|
||||
pk_constraint.owner_ = object_.get();
|
||||
}
|
||||
|
||||
std::vector<attribute>::iterator object_generator::find_attribute_by_name(const std::string& name) const {
|
||||
std::list<attribute>::iterator object_generator::find_attribute_by_name(const std::string& name) const {
|
||||
return std::find_if(std::begin(object_->attributes_), std::end(object_->attributes_), [&name](const attribute& elem) {
|
||||
return elem.name() == name;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user