Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CalculatedStatusSql.php
Go to the documentation of this file.
1 <?php
8 
10 
12 {
19  public function get($operationTableName)
20  {
21  return new \Zend_Db_Expr(
22  '(IF(
23  (SELECT count(*)
24  FROM ' . $operationTableName . '
25  WHERE bulk_uuid = main_table.uuid
26  ) = 0,
28  (SELECT MAX(status) FROM ' . $operationTableName . ' WHERE bulk_uuid = main_table.uuid)
29  ))'
30  );
31  }
32 }