sammarks / ablecore

A library for Drupal developers.
MIT License
5 stars 4 forks source link

Fix calling functions off entity reference fields. #12

Closed sammarks closed 10 years ago

sammarks commented 10 years ago

Calling a function like alias() results in a fatal error. For example, something like this fails:

$node->field_entity_reference->alias()
sammarks commented 10 years ago

This will actually have to come with #4, because the way the EntityReferenceFieldValue currently works is that it basically replicates the field function on the Node class.

We'll have to modify the EntityReferenceFieldValue to actually store the AbleCore\Entity class as the value instead of the standard Drupal entity.

sammarks commented 10 years ago

Marking it as an enhancement instead of a bug, because it is currently not intended functionality.