@@ -24,7 +24,7 @@ class UserProcessor extends AbstractProcessor
2424 */
2525 public function findByName ($ name )
2626 {
27- error_log ( date ( " H:i:s " ) . ' ' . __METHOD__ );
27+
2828 // load the entity manager and the user repository
2929 $ entityManager = $ this ->getEntityManager ();
3030 $ repository = $ entityManager ->getRepository ('EmberChat\Entities\User ' );
@@ -35,7 +35,7 @@ public function findByName($name)
3535
3636 public function findAll ()
3737 {
38- error_log ( date ( " H:i:s " ) . ' ' . __METHOD__ );
38+
3939 // load the entity manager and the user repository
4040 $ entityManager = $ this ->getEntityManager ();
4141 $ repository = $ entityManager ->getRepository ('EmberChat\Entities\User ' );
@@ -53,7 +53,7 @@ public function findAll()
5353 */
5454 public function findById ($ id )
5555 {
56- error_log ( date ( " H:i:s " ) . ' ' . __METHOD__ );
56+
5757 // load the entity manager and the user repository
5858 $ entityManager = $ this ->getEntityManager ();
5959 $ repository = $ entityManager ->getRepository ('EmberChat\Entities\User ' );
@@ -68,23 +68,23 @@ public function findById($id)
6868 * @param $user
6969 */
7070 public function updateEntity (User $ user ){
71- error_log ( date ( " H:i:s " ) . ' ' . __METHOD__ );
71+
7272 $ entityManager = $ this ->getEntityManager ();
7373 $ entityManager ->merge ($ user );
7474 $ entityManager ->flush ();
7575 return $ user ;
7676 }
7777
7878 public function createNew (User $ user ){
79- error_log ( date ( " H:i:s " ) . ' ' . __METHOD__ );
79+
8080 $ entityManager = $ this ->getEntityManager ();
8181 $ entityManager ->persist ($ user );
8282 $ entityManager ->flush ();
8383 return $ user ;
8484 }
8585
8686 public function remove (User $ user ){
87- error_log ( date ( " H:i:s " ) . ' ' . __METHOD__ );
87+
8888 $ entityManager = $ this ->getEntityManager ();
8989 // @TODO why it the $room the same object like in websocket handler?
9090 // @TODO why are there more properties that defined in __sleep()?
0 commit comments