Add Sudzy to MailPoetVendor namespace

[MAILPOET-2545]
This commit is contained in:
Jan Jakeš
2019-11-26 16:19:20 +01:00
committed by Jack Kitterhing
parent 5c212e7483
commit 9a2dea5f37
6 changed files with 8 additions and 11 deletions

View File

@ -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()) {