1

I have 4 tables: Animals -- Race ---- Color -------- Name

I know how I can load each table one by one but since the tables are related I want to load all elements and the whole hierarchy at once.

I tried loading in _afterLoad but this would result in executing many queries

Any help appreciated!

1 Answer 1

1

Implement your own Resource model, extended somehow from Mage_Core_Model_Resource_Db_Abstract and change _getLoadSelect(), then you can load whatever you want

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.