After dumping the schema in the helper, loads the dumped Schema, checks
->sources and if empty prints a warning with a suggestion to specify
db_schema.
$self->loader_args,
[$self->connect_info]
);
+
+ require lib;
+ lib->import($schema_dir);
+
+ Class::MOP::load_class($self->schema_class);
+
+ my @sources = $self->schema_class->sources;
+
+ if (not @sources) {
+ warn <<'EOF';
+WARNING: No tables found, did you forget to specify db_schema?
+EOF
+ }
}
sub _gen_model {