chicks / sugarcrm

A ruby based REST Client for SugarCRM
MIT License
90 stars 64 forks source link

Association with custom module seems not working #81

Open kevinsdooapp opened 12 years ago

kevinsdooapp commented 12 years ago

I want to link a software (how is a custom module) to a contact.

First I initialized my entities c (contact) and the software. Then I tried to link them: Note that I had a problem on saving so I applied the modification of this commit manually (https://github.com/boobooninja/sugarcrm/commit/6497dfead564ae8ed82ee52e8af56cb24e4e0c7b)

But now there is no error thrown and the association isn't done:

c.dooap_softwares << software => #<SugarCRM::AssociationCollection:0x1040fff50 ............ c.dooap_softwares.include?(software) => true c.save => true c.dooap_softwares.include?(software) => false

Could you check if you have the same problem?