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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:11:04+00:00 2026-06-18T11:11:04+00:00

I got a problem with doctrine orm using annotation driver releated to the lifecyclecallback.

  • 0

I got a problem with doctrine orm using annotation driver releated to the lifecyclecallback.
I got 2 classes:

  1. abstract Model (marked as MappedSuperclass, haslifecyclecallbacks)
  2. User (extending Model, marked as entity)

the prePresist method isn’t called if i save an instance of user to the database.
If i move the method to the User class everything works fine.

Can you give me a hint how to get the inheritance to work like expected?
(i try to set an uuid instead of an id for all classes extending the Model class)

You can watch it at this gist

  • 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-18T11:11:05+00:00Added an answer on June 18, 2026 at 11:11 am

    Usage of lifecycle callbacks this way is not supported by the annotation metadata driver. Consider using either the YAML or XML mappers instead, since they allow such kind of usage. You will still have to tell the driver that each of your subclasses has some lifecycle callbacks.

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

Sidebar

Related Questions

I got problem with Doctrine. I add this lines in my application.ini: includePaths.model =
I got problem with sending data in Android using httpPost. I found some example,
I got problem to request a PartialView using ajax In my point of view
I've got problem with using Json from : http://api.justin.tv/api/stream/list.json?channel=Herdyn , I need get some
I've got problem. I'm using windows.forms ListView to show some data and I need
Got problem with opening custom context menu using advanced user interactions API in Selenium
I'm using Symfony 1.4 with Doctrine 1.2 and I've got the following databases.yml: all:
I'hv got a problem when I am using foreach in smarty, an array with
Im using ZF2 with DoctrineModule and DoctrineORMModule. Problem: I got some Tablenames in my
I've been using Doctrine in my project without explicitly namespacing any of my classes.

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.