-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning from class_parents() in ClassMetadataFactory #34
Comments
For sanity sake, I dropped back to a clean version of Symfony_Standard_2.0.0BETA2.tgz. Using the stock config, I ran the doctrine:schema:create command and got "No Metadata Classes to process" as I expect given that I've not created any entity classes. I added the StofDoctrineExtensionsBundle line in app/AppKernel.php and both the 'Stof' and 'Gedmo' namespaces in app/autoload.php. I added the following to bin/deps: / gedmo-doctrine-extensions http://github.com/l3pp4rd/DoctrineExtensions.git I didn't set any versions on bin/2.0.0BETA2.deps so the bin/vendor.php scrip pulled origin/HEAD for these. I tried it once with the stock VERSION file and again after changing VERSION to 2.0.0NEXT. In both cases, running the doctrine:schema:create command generated the same error. |
I think the issue may be with the names of the files in Resources/config/doctrine. They do not need the namespace prefixes so Stof.DoctrineExtensionsBundle.Entity.AbstractClosure.orm.xml becomes AbstractClosure.orm.xml, etc. |
I got the same error initially. |
Class Stof\DoctrineExtensionsBundle\Entity\Stof\DoctrineExtensionsBundle\Entity\AbstractClosure clearly shows that something is wrong with the mapping. Try to rename those xml files |
Sorry. I should have mentioned in my earlier comment that renaming the *.orm.xml files to remove the "Stof.DoctrineExtensionsBundle.Entity." prefix did in fact get me past that fault. |
The issue is that the naming change was merged yesterday when I was in a place without Internet access. I will update the bundle accordingly |
I just commited the file renaming. |
Don't mean to be a pest but I don't think this commit went through. I see commits for a couple later issues but this one seems to be missing. |
sorry, I messed the push. It is done now. |
np, thx much for your efforts. good stuff. Paul Dugas • Dugas Enterprises, LLC • Computer Engineer 522 Black Canyon Park, Canton GA 30114 • On Tue, May 24, 2011 at 11:55 AM, stof <
|
If I had to guess, I'd suggest this is due to the current state of flux with Doctrine and Symfony lately but I've tried to track it down for much of today without success. Figured I'd drop you an issue in case it rings any bells for you.
I'm getting the following warning when I run "app/console doctrine:schema:create"
Warning: class_parents(): Class Stof\DoctrineExtensionsBundle\Entity\Stof\DoctrineExtensionsBundle\Entity\AbstractClosure does not exist and could not be loaded in /home/pdugas/work/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php line 223
I'm working from the 2.0BETA2 version of Symfony Standard using the included bin/vendors.php script. I've tried changing the VERSION to 2.0.0NEXT and changing the bin/2.0.0NEXT.deps file to use "master" instead of "2.0.5" for the doctrine version. I've also tried making sure I've got "master" versions of DoctrineExtensionsBundle and gedmo-doctrine-extensions. Just can't seem to shake this fault.
The text was updated successfully, but these errors were encountered: