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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:42:19+00:00 2026-06-15T23:42:19+00:00

I got the following entity use Gedmo\Timestampable\Traits\TimestampableEntity; /** * @ORM\Entity * @ORM\Table(name=users) * @UniqueEntity(fields=email,

  • 0

I got the following entity

use Gedmo\Timestampable\Traits\TimestampableEntity;

/**
 * @ORM\Entity
 * @ORM\Table(name="users")
 * @UniqueEntity(fields="email", message="Email already taken")
 */
class User
{
    /**
     * Hook timestampable behavior
     * updates createdAt, updatedAt fields
     */
    use TimestampableEntity;

…

if i run

$ php app/console doctrine:mapping:info

i get this error

found 8 mapped entities:
[OK]   Gedmo\Translatable\Entity\MappedSuperclass\AbstractPersonalTranslation
[OK]   Gedmo\Translatable\Entity\MappedSuperclass\AbstractTranslation
[OK]   Gedmo\Translatable\Entity\Translation
[OK]   Gedmo\Loggable\Entity\MappedSuperclass\AbstractLogEntry
[OK]   Gedmo\Loggable\Entity\LogEntry
[OK]   Gedmo\Tree\Entity\MappedSuperclass\AbstractClosure
[OK]   Psren\CmsBundle\Entity\Group



  [Doctrine\Common\Annotations\AnnotationException]                                                                                                                                                    
  [Semantical Error] The annotation "@Gedmo\Timestampable" in property Psren\CmsBundle\Entity\User::$createdAt was never imported. Did you maybe forget to add a "use" statement for this annotation?

the annotation @Gedmo\Timestampable was defined in the trait of the extension. so it must have been loaded.

what went wrong?
thanks for help.

  • 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-15T23:42:20+00:00Added an answer on June 15, 2026 at 11:42 pm

    🙂

    I just fortgot to load the annotations.

    use Gedmo\Mapping\Annotation as Gedmo;
    use Gedmo\Timestampable\Traits\TimestampableEntity;
    
    /**
     * @ORM\Entity
     * @ORM\Table(name="users")
     * @UniqueEntity(fields="email", message="Email already taken")
     */
    class User
    {
        /**
         * Hook timestampable behavior
         * updates createdAt, updatedAt fields
         */
        use TimestampableEntity;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i've got following example xml: <entity id=1> <name>computer</name> <type>category</type> <entities> <entity id=2> <name>mac</name> <type>category</type>
I use Spring + Hibernate with annotations and i got the following error :
I've got a Vehicle entity, with a Vehicle DTO. I use OpenSessionInView with Stripes.
I got the following variable into my entity: [DataType(DataType.Currency)] [DisplayName(Value U$:)] [Required(ErrorMessage = Currency
I've got the following ADO.NET Entity Framework Entity Data Model: I want to find
My entity name is "Contact" and my table name is "Contact". However, the default
This is the entity contains blob type: @Entity @Table(name=image_info) public class ImageInfo extends Model
Im using entity framework code first 4.3 in c# I got the following classes:
I got following repeating syntax and I want to keep all <h1> that is
I got following code in an XHTML-document and every browser saysit is malformed :(

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.