lorenzo / linkable

Linkable behavior is the intelligent friend of Containable behavior. It will re-setup your associations on the fly when you require to join more than one association in the same query
26 stars 9 forks source link

Linkable does not support aliased associations #13

Open ravage84 opened 8 years ago

ravage84 commented 8 years ago

Not sure if I am doing something wrong but I can't get Linkable v1.1.1 to work with aliased associations. Since I have many cross linked tables, I must use association aliases differently named than the model name.

This makes it impossible for me to work with Linkable.

I tried to comment out the skip test mark on https://github.com/lorenzo/linkable/blob/1.1.1/Test/Case/Model/Behavior/LinkableBehaviorTest.php#L436, which showed the test as broken.

Guess not only the test case needs revision :smirk_cat:

lorenzo commented 8 years ago

It's been a long time I don't use this plugin if you have an idea of how to solve it, please go ahead :)