Drupal - Relation vs. References vs. Entity Reference for managing node-reference-type relationships

As of March 2012, the References module project page is now recommending Entity Reference as a replacement.

For basic node-type references, Entity Reference is certainly easier to set up than Relation. I think a good general rule would be

If you can do what you want with Entity Reference, use that. Otherwise, go with Relation.


I've tried them all for an upcoming project. And the way i see it, only use Relation if you're dealing with complex relationships, not one-to-one references. If what you need is a basic reference, I'd go for references or entityreference.

I think that the last update concerning a widget for Relation, is that they're going to drop the idea, and consider Relation as an API only module. But who knows?

One note, if you want to use entityreference and field_collection together - it's buggy. Just fyi.


Relation is planned as a replacement for References. Visit the Drupal.org/modules/references or /relation pages. Relation looks very good, but is not fully implemented yet. They have been working on widgets to create the relationships, but have also had some problems. Despite the limitations current widget I like the relation module capabilities. I have been working using both as I get more familiar with Drupal.

Tags:

Entities

Nodes

7