Results 1 to 7 of 7

Thread: relationships and custom CE packages

  1. #1
    ldebaets is offline Sugar Community Member
    Join Date
    Jul 2010
    Location
    Ottawa, Ontario, CANADA
    Posts
    39

    Question relationships and custom CE packages

    Is there a known problem with relationships between custom modules when generating and loading packages for them? It looks like relationships can be lost and relationship tables can be lost for modules which also are related to standard Sugar modules.
    I was using the SugarCRM CE version 6.1.0 to generate the package and it was loaded into a SugarCRM CE version 6.1.2 and 6.1.3 application load when I saw the problem.

    I would like to know if anyone else has experienced the same problem and what the solution may be. This is very crucial for me.
    Leonard De Baets
    TIM Program
    Carleton University, Ottawa, Ontario, Canada

  2. #2
    ldebaets is offline Sugar Community Member
    Join Date
    Jul 2010
    Location
    Ottawa, Ontario, CANADA
    Posts
    39

    Exclamation Re: relationships and custom CE packages

    Quote Originally Posted by ldebaets View Post
    Is there a known problem with relationships between custom modules when generating and loading packages for them? It looks like relationships can be lost and relationship tables can be lost for modules which also are related to standard Sugar modules.
    I was using the SugarCRM CE version 6.1.0 to generate the package and it was loaded into a SugarCRM CE version 6.1.2 and 6.1.3 application load when I saw the problem.

    I would like to know if anyone else has experienced the same problem and what the solution may be. This is very crucial for me.
    Documentation indicates we should be able to relate custom modules to sugar modules and have them survive a package export or publish operation and install correctly in a new installed instance of the Community Edition of SugarCRM. Since it is failing for me, and I have successfully deployed and tested the package prior to publishing the package, I suspect it is a defect and I should open a bug.
    It`s high priority for myself as there are many people dependent on a solution very soon. Someone please help.
    Leonard De Baets
    TIM Program
    Carleton University, Ottawa, Ontario, Canada

  3. #3
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: relationships and custom CE packages

    It's definitely a known issue and you may be able to find a bug for it. Best practice is that once you publish a package to do all your additional changes in Studio instead. Stinks though since any additional fields will be in the _cstm table instead.

  4. #4
    ldebaets is offline Sugar Community Member
    Join Date
    Jul 2010
    Location
    Ottawa, Ontario, CANADA
    Posts
    39

    Default Re: relationships and custom CE packages

    Quote Originally Posted by eggsurplus View Post
    It's definitely a known issue and you may be able to find a bug for it. Best practice is that once you publish a package to do all your additional changes in Studio instead. Stinks though since any additional fields will be in the _cstm table instead.
    Thank you very much. Another question if you don`t mind:
    For a a fresh installation with an upload of the package, does your reply mean I should use Studio to fix or reset the relationships. I would think that would work but for upgrades with live data that has to survive, I think I could use a tool like phpMyAdmin to import the data for the lost table after it gets recreated using Studio. Would you agree with that procedure.

    Same question as above but with Modulebuilder for an exported package.

    Thanks again for your help. In a way it`s good to know it`s a known bug, but I think we definitely would like to be able to do seamless upgrades and installations of custom pacakges. I may open a new bug and try the scenarios above to see if they are good workarounds.
    Leonard De Baets
    TIM Program
    Carleton University, Ottawa, Ontario, Canada

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: relationships and custom CE packages

    Personally I've had to repair relationships directly in the database. If you're comfortable with that I don't see an issue. I forget how the deployment works. Does a file get created in custom/metadata for your relationship as well?

  6. #6
    ldebaets is offline Sugar Community Member
    Join Date
    Jul 2010
    Location
    Ottawa, Ontario, CANADA
    Posts
    39

    Default Re: relationships and custom CE packages

    Quote Originally Posted by eggsurplus View Post
    Personally I've had to repair relationships directly in the database. If you're comfortable with that I don't see an issue. I forget how the deployment works. Does a file get created in custom/metadata for your relationship as well?
    Yes, for the case of an Exported package loaded into a new sugar instance, there is a file in the custom/metadata directory for it! The relationships are seen in ModuleBuilder and Studio too.

    Thanks eggsurplus. I am trying the various workarounds to see which one I would prefer to use.
    Leonard De Baets
    TIM Program
    Carleton University, Ottawa, Ontario, Canada

  7. #7
    tickletoe is offline Member
    Join Date
    Feb 2011
    Location
    London, UK
    Posts
    13

    Default Re: relationships and custom CE packages

    I have a slightly different problem and don't know whether it is because of this bug or because of the way I have designed my packages. I have two custom packages which contain various custom modules. I divided the modules between the two packages because it seemed logical at the time.

    I have package A, with module 1,2,3,4 and package B with module 5,6,7

    When I relate module 1 and 5 in module builder and deploy the relationship can be lost.

    My question is, do people think this is because of this bug or because I have the modules in two different packages? Would it happen if they were in the same package and if not is there an easy way to merge packages?

    Many thanks for any input on this.

    Cheers
    scott

    SugarCRM CE 6.1.1

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HELP! Custom Relationships
    By matt.stannard in forum Help
    Replies: 3
    Last Post: 2010-08-09, 10:49 AM
  2. relationships and custom modules...
    By ajlisowski in forum Developer Help
    Replies: 1
    Last Post: 2010-07-23, 06:33 PM
  3. Replies: 4
    Last Post: 2010-03-12, 08:37 PM
  4. Which is better bundled packages or system packages
    By sikkalgopal in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2009-12-09, 01:04 PM
  5. Uninstalling All Custom packages
    By Mithun in forum Developer Help
    Replies: 1
    Last Post: 2009-03-28, 08:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •