jaxio / celerio-angular-quickstart

Generate an Angular 5 CRUD application from an existing database schema (we provide a sample one)
Apache License 2.0
481 stars 138 forks source link

vm file based query #36

Open praveenrajkr opened 7 years ago

praveenrajkr commented 7 years ago

Hi i am trying to modify the "entity-detail.component.html.e.vm" file but the below condition for one to one and one to many relationship always fails

if($entity.inverseOneToOne.flatUp.size > 0 || $entity.oneToMany.flatUp.size > 0 || $entity.manyToMany.flatUp.size > 0)

nromanetti commented 7 years ago

What do you mean by fails ? return false or throw an exception ?

I assume 'false'... don't forget that inverse associations (inverse one-to-one or one-to-many) must be declared in the celerio configuration file

Check the doc for configuring such associations: one to many inverse one to one