public function isLocked() { if (parent::isLocked()) { return true; } return (bool) Mage::getModel('M2ePro/Buy_Account')->getCollection()->getSize(); }
public function isLocked() { if (parent::isLocked()) { return true; } return (bool) Mage::getModel('M2ePro/Buy_Listing')->getCollection()->addFieldToFilter('template_synchronization_id', $this->getId())->getSize(); }