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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:27:49+00:00 2026-06-01T20:27:49+00:00

I wanted to use this code, and it break on flush() without any exception

  • 0

I wanted to use this code, and it break on flush() without any exception message:

1. at PDOStatement ->execute (null) 
in ../vendor/doctrine-dbal/lib/Doctrine/DBAL/Statement.php at line 131    
2. at Statement ->execute () 
in ../vendor/doctrine/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php at line 237    
3. at BasicEntityPersister ->executeInserts () 
in ../vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php at line 726    
4. at UnitOfWork ->executeInserts (object(ClassMetadata)) 
in ../vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php at line 292    
5. at UnitOfWork ->commit () 
in ../vendor/doctrine/lib/Doctrine/ORM/EntityManager.php at line 334    
6. at EntityManager ->flush () 
in ../src/Tools/TFIBundle/Model/CSVImport.php at line 136    
7. at CSVImport ->addCategory ('fundusz obligacji') 
in ../src/Tools/TFIBundle/Model/CSVImport.php at line 114

addCategory() method looks:

public function addCategory( $categoryName )
{
    $category = new Category();
    $category->setName( $categoryName );

    $this->em->persist( $category );
    $this->em->flush();
    $this->counter['category']++;

    return $category;
}

any idea what is wrong? or how to get PDOException message within symfony2 ?

  • 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-01T20:27:50+00:00Added an answer on June 1, 2026 at 8:27 pm

    I had the same problem just seconds ago. It got fixed when I went to the production mode and and closed the session. It looks like development mode has problems with sessions when you do things like replacing the entire folder with a lot of changes while session still alive.

    Try clearing your session, it may work.

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

Sidebar

Related Questions

I wanted to list all my Recently Used Items. I use this code: public
I wanted to use groovy for a little ftp script and found this post
I wanted to know how to use threads in Cocoa. I'm new to this
I know I could use PHP to do this, but wanted to find out
Thanks for looking at this question. I wanted to know how can I use
I have this code inline in document ready if($.cookie('form_seen') == null) { $(#dialog_form).dialog(open); }
I wanted to use JET (Java Emitter Templates) in my Netbeans projects, but had
I wanted to use monotouch, but unfortunately I don't have $400 to spend. So
I wanted to use the custom field for wordpress to have a different header
I wanted to use a python equivalent to piping some shell commands in perl.

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.