Completed
Push — master ( 176513...430b36 )
by Park Jong-Hun
05:22
created

EntityUpdate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A update() 0 5 1
1
<?php
2
3
namespace Core\Utils\EntityUtils;
4
5
use Core\DatabaseManager;
6
7
class EntityUpdate
8
{
9
    public static function update($entity)
10
    {
11
        DatabaseManager::getEntityManager()->persist($entity);
12
        DatabaseManager::getEntityManager()->flush();
13
    }
14
}