Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8270533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:35:36+00:00 2026-06-08T06:35:36+00:00

I´ve created my own user Bundle, extending FOSUserBundle. In my UserBundle, I have a

  • 0

I´ve created my own user Bundle, extending FOSUserBundle.

In my UserBundle, I have a memberID field, with its setters and getters.

I can already find users by memberID using EntityManager, and then I could find the user through UserManager matching the username/email/… obtained with that EntityManager query, but…

Is there a way to findUserByMemberID using UserManager?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:35:38+00:00Added an answer on June 8, 2026 at 6:35 am

    Thank you for your replies. It seems it´s easier than all this stuff.

    OwnUserBundle:

     /**
     * @ORM\Column(type="string")
     *
     */
    protected $memberID;
    
    public function getMemberID()
    {
        return $this->memberID;
    }
    
    public function setMemberID($memberID)
    {
        $this->memberID = $memberID;
    }
    

    You can query FOSUserBundle:

    $userManager = $this->get('fos_user.user_manager');
    
    $user = $userManager->findUserBy(array('memberID' => '123'));
    

    Then, using method findUserBy(array(*OwnUserBundle_field* => *search_parameter_value*)) you´ll get the user/s instance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created some of my own user packages and have run into a
I am using a code-first methodology. I have created my own user model and
I have successfully created my own virtual path provider to load a user control
When a user registers on my site, they have their own table created in
I've created my own signup form and creating the user using the Membership class.
I'm writing an app where a user can both create their own pages for
I am building a website templating system where multiple user can create their own
I have created my own Attached Property like this: public static class LabelExtension {
I have created own AMI and registered it on Amazon EC2. But while AMI
I have created my own maps of US states that I want to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.