Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
dml_multiple_records_exception Class Reference

Caused by multiple records found in get_record() call. More...

Inheritance diagram for dml_multiple_records_exception:
dml_exception

Public Member Functions

 __construct ($sql='', ?array $params=null)
 Constructor.
 

Public Attributes

array $params
 The SQL's related parameters.
 
string $sql
 The SQL that ran just before this read error.
 

Detailed Description

Caused by multiple records found in get_record() call.

@subpackage dml

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

dml_multiple_records_exception::__construct ( $sql = '',
?array $params = null )

Constructor.

Parameters
string$sqlThe SQL that ran just before this read error.
array$paramsThe SQL's related parameters.(optional)

The documentation for this class was generated from the following file: