Files
piratepoet/mailpoet/lib/Models/MappingToExternalEntities.php
Jan Jakes 9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00

14 lines
345 B
PHP

<?php
namespace MailPoet\Models;
class MappingToExternalEntities extends Model {
public static $_table = MP_MAPPING_TO_EXTERNAL_ENTITIES_TABLE; // phpcs:ignore PSR2.Classes.PropertyDeclaration
public static function create($data = []) {
$relation = parent::create();
$relation->hydrate($data);
return $relation->save();
}
}