// attributes: ArrayOf {name, [isKey], [type], [qualifiers]}
parseAttributes(lines, start, end)
{
- let attributes = [];
+ let attributes = [ ];
for (let i=start; i<end; i++)
{
let field = { };
a.entities.forEach( e2 => {
if (e2.name == e.name)
return;
- e2.attributes.forEach( attr => {
+ this.entities[e2.name].attributes.forEach( attr => {
if (attr.isKey)
{
this.tables[e.name].push({
});
});
// Add relationship potential own attributes
- a.attributes.forEach( attr => {
+ (a.attributes || [ ]).forEach( attr => {
newTable.fields.push({
name: attr.name,
isKey: false,