CalendarBundle icon indicating copy to clipboard operation
CalendarBundle copied to clipboard

Could not load type "rizza_calendar_calendar"

Open tworzenieweb opened this issue 13 years ago • 3 comments

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?

tworzenieweb avatar Aug 31 '12 10:08 tworzenieweb

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

dao avatar Sep 17 '12 18:09 dao

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 avatar May 03 '13 18:05 mgls

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!

mgls avatar May 04 '13 13:05 mgls