title: "Cannot read property 'tablePath' of undefined" ( TYPE ORM )
body: <pre><code>    {
          "name": "TypeError"
  "message": "Cannot read property 'tablePath' of undefined",
          "stack": "TypeError: Cannot read property 'tablePath' of undefined\n    at C:\\working\\Hianfa\\Hianfa\\api\\src\\query-builder\\SelectQueryBuilder.ts:1500:76\n    at Array.map (&lt;anonymous&gt;)\n    at SelectQueryBuilder.createJoinExpression (C:\\working\\Hianfa\\Hianfa\\api\\src\\query-builder\\SelectQueryBuilder.ts:1462:57)\n    at SelectQueryBuilder.getQuery (C:\\working\\Hianfa\\Hianfa\\api\\src\\query-builder\\SelectQueryBuilder.ts:54:21)\n    at SelectQueryBuilder.QueryBuilder.getQueryAndParameters (C:\\working\\Hianfa\\Hianfa\\api\\src\\query-builder\\QueryBuilder.ts:392:28)\n    at SelectQueryBuilder.&lt;anonymous&gt; (C:\\working\\Hianfa\\Hianfa\\api\\src\\query-builder\\SelectQueryBuilder.ts:1948:40)\n    at step (C:\\working\\Hianfa\\Hianfa\\api\\node_modules\\tslib\\tslib.js:136:27)\n    at Object.next (C:\\working\\Hianfa\\Hianfa\\api\\node_modules\\tslib\\tslib.js:117:57)\n    at C:\\working\\Hianfa\\Hianfa\\api\\node_modules\\tslib\\tslib.js:110:75\n    at new Promise (&lt;anonymous&gt;)"
      }
  </code></pre>
  
  <p>I am getting this error, while trying to map two tables with the mapping table.</p>
  
  <p>VENDOR MODEL (TABLE 1)</p>
  
  <pre><code>@ManyToMany(type =&gt; VendorToCategory, vendorToCategory =&gt; vendorToCategory.vendor)
  // @JoinColumn({name: 'vendor_vendor_category_id'})
  public vendorToCategory: VendorToCategory[];
  </code></pre>
  
  <p>VENDOR CATEGORY MODEL (TABLE 2)</p>
  
  <pre><code> @ManyToMany(type =&gt; VendorToCategory, vendorToCategory =&gt; vendorToCategory.vendorCategory)
      @JoinColumn({name: 'vendor_vendor_category_id'})
      public vendorToCategory: VendorToCategory[];
  </code></pre>
  
  <p>MAPPING TABLE (VENDOR TO CATEGORY)</p>
  
  <pre><code>   @ManyToMany(type =&gt; Vendor, vendor =&gt; vendor.vendorToCategory)
      @JoinColumn({ name: 'vendor_id' })
      public vendor: Vendor[];
  
  @ManyToMany(type =&gt; VendorCategory, vendorCategory =&gt; vendorCategory.vendorToCategory)
  @JoinColumn({ name: 'vendor_category_id' })
  public vendorCategory: VendorCategory[];
  </code></pre>
  
  <p>Please help me out with this error!</p>