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 8506555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:37:23+00:00 2026-06-11T02:37:23+00:00

Reading around and playing with what I’ve got, I’ve concluded that I’m on the

  • 0

Reading around and playing with what I’ve got, I’ve concluded that I’m on the right path simply embedding the form(s) like any other:

$builder->add('user', 'fos_user_registration', array(
    'label' => 'Sign up',
    'error_bubbling' => false
));

And I’ve been theorising that I’d have to align my validation groups with those of FOSUser?:

public function setDefaultOptions(OptionsResolverInterface $resolver)
{
    $resolver->setDefaults(array(
        'data_class' => 'ACME\ReviewBundle\Entity\Review',
        'flowStep' => 1,
        'validation_groups' => array('Registration', 'Profile')
    ));
}

Perhaps with Default too?:

        'validation_groups' => array('Default', 'Registration', 'Profile')

However, the validation is still passing and it falls over at database level, so I’m guessing I need to do something else to assign the validation groups?


Beyond that, I’m also unsure how the processing of this is going to work, I could rip a load of it out of the FOSUser form handler and controller, but this seems a bit wet, and I’m wondering whether there is a better way? It would be nice to have it all reliant on the same logic.

To give some context, I’m using CraueFormFlow and I have a process a user needs to be able to start either authed or not. If they are unauthed, the a later step in the process needs them to either register or login.

I need to retain the data collected prior to authentication, which as far as I see, if I can embed the registration and login forms within my main form, should happen naturally.

Note: I have email confirmation off, so that isn’t a concern, and it should be possible to make the entire process linear, with the user coming out authenticated and having had their review submitted.

  • 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-11T02:37:24+00:00Added an answer on June 11, 2026 at 2:37 am

    Turns out that I needed an @Assert annotation, otherwise the validation isn’t applied.

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

Sidebar

Related Questions

I am currently playing around with and reading up on Prism. I know that
Playing around with Lucene. Trying to make my changes visible for other reading threads.
Was reading through some text and playing around with attempting to write past the
I'm reading some data for countries around the world and am playing with Google's
I'm playing around with reading the signal strengths in a small Android App, and
Doing a bit of reading around domain driven design and it seems that you're
I've been reading a bunch and playing around with Castle Windsor 1.0 RC3 lately
I have been reading around and know that by default jQuery within a the
I'm playing around with the Northwind database and by reading some tutorials I see
I've been playing around with prototypal inheritance after reading http://javascript.crockford.com/prototypal.html and having a bit

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.