public static function update($entity)
    {
        $entityManager = self::getEntityManager();
        $entity = $entityManager->merge($entity);
        $entityManager->flush(); // transact

        return $entity;
    }
public static function update($entity)
    {
        $entityManager = self::getEntityManager();
        $entity = $entityManager->merge($entity);
        $entityManager->flush(); // transact

        return $entity;
    }
public static function update ( $ entity ) { $ entityManager = self :: getEntityManager ( ) ; $ entity = $ entityManager -> merge ( $ entity ) ; $ entityManager -> flush ( ) ; // transact return $ entity ; }
Update a single record
Convenience method to update a row.
You should use the Doctrine EntityManager directly to take control of the Entity merge process.
@note do we need this?
Update a single record Convenience method to update a row . You should use the Doctrine EntityManager directly to take control of the Entity merge process .