Files
piratepoet/lib/Models/MappingToExternalEntities.php
Jan Jakeš e185121f43 Fix properties with trailing underscore
[MAILPOET-2715]
2020-02-19 19:12:53 +00: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();
}
}