Bitrix\Main\ORM\Data\AddResult extends \Bitrix\Main\Entity\AddResult
class MyCustomTable extends Entity\DataManager { /// } |
$result = MyCustomTable::add($data); if($result->isSuccess()){ echo "add success, id=".$result->getId(); } else{ $errors = $result->getErrorMessages(); echo 'errors: ' . implode(', ', $errors); } |