public static function getAllSuplyItemsArray() { $doctrine = self::$servicelocator->get('doctrine'); $supliersItemModel = new supplyItemModel($doctrine); $sups = $supliersItemModel->findBy(array('isdelete' => '0')); $array = array(); foreach ($sups as $sup) { $array[$sup->getId()] = $sup->getValue(); } return $array; }
public static function getRawMaterial() { $doctrine = self::$servicelocator->get('doctrine'); $menusStoreModel = new supplyItemModel($doctrine); $menusStore = $menusStoreModel->findBy(array('isdelete' => 0)); $menusStore = $menusStoreModel->convertToArray($menusStore); return $menusStore; }