We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44234
    • 219 Posts
    Bingo! I had been parseing it but something must have gone wrong with the package. I deleted it, regenerated and all is working perfectly. Thanks so much for your help!

    One thing, could you explain this part of the schema as it seems to work with or without it:
    <aggregate alias="Resource" class="modResource" local="resource_id" foreign="id" cardinality="one" owner="foreign" />
    
      Find me on Twitter, GitHub or Google+
      • 4172
      • 5,888 Posts
      with this relations, defined with the schema, you can do automatic joins, and use some nice API-functions like getCollectionGraph, addOne, getOne....

      If you make a join to Resources with migxLoopCollection you can do:

      &joins=`[{"alias":"Resource"}]`


      otherwise you would need:

      &joins=`[{"alias":"Resource","classname":"modResource","on":"Resource.id=resource_id"}]`


      Another advantage is, when you look into your schema, you will see, how your tables are related to each other.

      composite-relations automatically takes care, when you remove a record of a 'master-table', to remove related records of 'child-tables'
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 44234
        • 219 Posts
        Thanks that makes sence.

        Last stupid question; how are the column widths controled? Pixels, percenatages?
          Find me on Twitter, GitHub or Google+
          • 4172
          • 5,888 Posts
          not sure, I think, that are proportional values, somehow, widths relative to each other, since we have the grid forceFit:true, if I'm correct.
          http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.grid.GridView-cfg-forceFit
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!