Add Sudzy to MailPoetVendor namespace
[MAILPOET-2545]
This commit is contained in:
committed by
Jack Kitterhing
parent
5c212e7483
commit
9a2dea5f37
@ -124,7 +124,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
* @property string|null $id
|
||||
*/
|
||||
|
||||
class Model extends \Sudzy\ValidModel {
|
||||
class Model extends \MailPoetVendor\Sudzy\ValidModel {
|
||||
const DUPLICATE_RECORD = 23000;
|
||||
|
||||
public static $_table;
|
||||
@ -221,7 +221,7 @@ class Model extends \Sudzy\ValidModel {
|
||||
$this->_new_record = $this->isNew();
|
||||
try {
|
||||
parent::save();
|
||||
} catch (\Sudzy\ValidationException $e) {
|
||||
} catch (\MailPoetVendor\Sudzy\ValidationException $e) {
|
||||
$this->setError($e->getValidationErrors());
|
||||
} catch (\PDOException $e) {
|
||||
switch ($e->getCode()) {
|
||||
|
Reference in New Issue
Block a user