original_string: public function getAtom(User $user, $key, bool $detachFromEntityManager = true)
      {
          if ($atom = $this->getRepository()->findOneBy(['user_id' => $user->getId(), 'key' => $key])) {
              if ($detachFromEntityManager) {
                  $this->getEntityManager()->detach($atom);
              }
  
              return $atom;
          }
  
          return null;
      }
code: public function getAtom(User $user, $key, bool $detachFromEntityManager = true)
      {
          if ($atom = $this->getRepository()->findOneBy(['user_id' => $user->getId(), 'key' => $key])) {
              if ($detachFromEntityManager) {
                  $this->getEntityManager()->detach($atom);
              }
  
              return $atom;
          }
  
          return null;
      }
code_tokens: public function getAtom ( User $ user , $ key , bool $ detachFromEntityManager = true ) { if ( $ atom = $ this -> getRepository ( ) -> findOneBy ( [ 'user_id' => $ user -> getId ( ) , 'key' => $ key ] ) ) { if ( $ detachFromEntityManager ) { $ this -> getEntityManager ( ) -> detach ( $ atom ) ; } return $ atom ; } return null ; }
docstring: Get an atomic piece of user data
  
  @param User $user
  @param      $key
  @param bool $detachFromEntityManager
  
  @return UserAtom|null
docstring_tokens: Get an atomic piece of user data