AnsweredAssumed Answered

load_relationship problem :(

Question asked by Amel Itachi on May 19, 2015
Latest reply on May 20, 2015 by paperless

I have two modules, foi_evenements and foi_emplacements_evenements.
I want to load a relationship between them.

I have this in /custom/modules/Foi_Evenements/hook.php :

if ($bean->load_relationship('foi_emplacements_evenements'))
             $GLOBALS['log']->fatal('I'm here');
             $arrayevent = $bean->foi_emplacements_evenements->getBeans();

but there isnt "I'm here" message in sugarcrm.log, that means the relationship doesnt load ??

I don't know if my syntax is correct.

Someone can help me, please??