If the initial data is empty, the AR object will not be created and null will be returned.
(You should use the "new" operator to create the AR instance in that case.)
public static createRecord ( $type, $data ) : |
||
return | the initialized AR object. Null if the initial data is empty. |