Move entities to lib/entities and use "Entity" suffix

[MAILPOET-2014]
This commit is contained in:
Jan Jakeš
2019-07-24 10:58:08 +02:00
committed by M. Shull
parent 6ede84af1b
commit 0353f8e8b1
7 changed files with 19 additions and 19 deletions

View File

@ -1,7 +1,7 @@
<?php
namespace MailPoet\Settings;
use MailPoet\Doctrine\Entities\UserFlag;
use MailPoet\Entities\UserFlagEntity;
use MailPoet\WP\Functions as WPFunctions;
class UserFlagsController {
@ -44,7 +44,7 @@ class UserFlagsController {
]);
if (!$flag) {
$flag = new UserFlag();
$flag = new UserFlagEntity();
$flag->setUserId($current_user_id);
$flag->setName($name);
$this->user_flags_repository->persist($flag);