Skip to content
Advertisement

Tag: model

How to load a nested relationship in Laravel

I have a model called CallbackRequest the model has a relationship with Loan model and that is the only relationship for CallbackRequest model. CallbackModel: Now Loan model itself has a relationship with a third model called Applicant. Loan Model: My point: When I load CallbackRequest I eagerload loan model with it, all fine! But now I am wondering if there

Magento, getSubtotal and getGrandTotal always return zero

I have a weird problem. I have developed a module which adds a line to totals according to some value in database. But in my module model (which is inherited from Mage_Sales_Model_Quote_Address_Total_Abstract) when I call or or any other totals method, I get zero (0) returned. But in phpmyadmin, I see that those values are not zero. Any other column

Advertisement