DBFlow icon indicating copy to clipboard operation
DBFlow copied to clipboard

[3.0.0-beta1] generated _Table.getProperty does not put foreign key in ´´

Open noinnion opened this issue 10 years ago • 4 comments

    switch (columnName)  {
      case "`deposit`":  {
        return deposit;
      }
      case "tax_id":  {
        return tax_id;
      }
      case "productGroup_id":  {
        return productGroup_id;
      }
      case "`expandGroup`":  {
        return expandGroup;
      }
      default:  {
        throw new IllegalArgumentException("Invalid column name passed. Ensure you are calling the correct table's column");
      }

noinnion avatar Dec 19 '15 21:12 noinnion

yes the tax_id and productGroup_id are the foreign keys in your table (it appears).

agrosner avatar Jan 10 '16 03:01 agrosner

but productGroup_id is not quoted, that is why it goes to throw new IllegalArgumentException("Invalid column name passed. Ensure you are calling the correct table's column");

gnuhel avatar Jan 10 '16 19:01 gnuhel

Ooo now it makes sense

agrosner avatar Jan 10 '16 21:01 agrosner

fixed in develop

agrosner avatar Jan 17 '16 18:01 agrosner