Skip to content
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

Could not load type "rizza_calendar_calendar" #14

Open
tworzenieweb opened this issue Aug 31, 2012 · 3 comments
Open

Could not load type "rizza_calendar_calendar" #14

tworzenieweb opened this issue Aug 31, 2012 · 3 comments

Comments

@tworzenieweb
Copy link

I was trying to configure this bundle. I create bundle that extends this bundle.

rizza_calendar: 
    db_driver: orm

    class:
        model:
            calendar: Sylius\Sandbox\Bundle\CalendarBundle\Entity\Calendar
            event: Rizza\CalendarBundle\Entity\Event
            user: Adaptive\UserBundle\Model\User
            attendee: Rizza\CalendarBundle\Entity\Attendee

I have implemented classes that extend abstract models but i am still getting error Could not load type "rizza_calendar_calendar"

What else should I do to make this working correctly?

@dao
Copy link
Contributor

dao commented Sep 17, 2012

I don't believe I ran into this issue. Can you post the error with more debug context?

@mgls
Copy link

mgls commented May 3, 2013

I have also installed the bundle, updated AppKernal, updated app.config and routing.yml files per the docs, and extended the Calendar Entity in my own Application bundle. When I try to access the /calendar/add route, I receive the [Could not load type "rizza_calendar_calendar"] error.

Is there another configuration item I'm missing, please? Do I need to extend the Forms in my own bundle? Thanks!

The error is being thrown from Symfony\Component\Form\FormRegistry.php in the getType() method.

@mgls
Copy link

mgls commented May 4, 2013

I am using Symfony 2.1 - and with further debugging, I think the issue could be a breaking change between Symfony 2.0 and 2.1: https://github.com/symfony/symfony/blob/v2.1.0-BETA1/UPGRADE-2.1.md#other-bc-breaks. The order of the first two arguments has been flipped for createNamed(). I'm going to look into this a bit more - but if anyone has thoughts on this welcome some feedback on if anyone has gotten this Bundle working in Symfony 2.1 please. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants