Using CiviCRM API v3 Explorer, i can create case without any problem. I can see the new case on case dash board, but using the php script, there are an error exception happen
Fatal error: Uncaught CiviCRM_API3_Exception: [unknown error: DB Constraint Violation - case_type_id should possibly be marked as mandatory for Case,create API. If so, please raise a bug report. thrown in /idev/joom/administrator/components/com_civicrm/civicrm/api/api.php on line 45
Here is the snippet code
this is the output
Changing code to
get this error
Using the explorer code, all is running well
Anyone know why this happen ?