sammarks / ablecore

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

Restore old Node::load syntax. #14

Closed sammarks closed 10 years ago

sammarks commented 10 years ago

For a class that inherits the Entity class, the load function shouldn't have the $entity_type variable as it is assumed.

We need to refactor the Entity class's load function to be named something else (something more internal, but still publicly accessible), and then refactor the Node class to use the correct load function.

We also need to create classes to represent the other entity types.

sammarks commented 10 years ago

This also applies to functions like mapQuery, map, and all the other static functions.

sammarks commented 10 years ago

Fixed in 950e6e8855a03eb5027727919a229a5c20644416.