On Wednesday, 5 February 2014 08:50:27 UTC+1, Parsifal wrote:
>
> but as I said the file TablePrefix.php is called.
>
*How do you know?* For it doesn't work now, so probably that file is not
called.
- is the event triggered? Maybe you need a \ before
Doctrine\ORM\Events::loadClassMetadata. I've put Doctrine\ORM\Events
(without a slash) in a use clause on top and just call
Events::loadClassMetadata
- No mistakes in uppercase/lowercase in
.....Doctrine/ORM/DoctrineExtensions/TablePrefix.php? What autoloader do
you use? Do you get any warnings if you put your PHP error-reporting to the
max?
For the rest I don't see much wrong. Small remark: you normally name your
entities in singular ('User') and your table in plural ('users'), but that
is not leading to mistakes here; only showing you don't have ORM-thinking
completely in your veins yet.
So, please test if that TablePrefix-class is called on the
loadClassMetadata-event.
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.