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

Installation issue #13

Open
schingeldi opened this issue Mar 31, 2012 · 1 comment
Open

Installation issue #13

schingeldi opened this issue Mar 31, 2012 · 1 comment

Comments

@schingeldi
Copy link

I tried to install the bundle and got (hopefully) everything in place. But I can't call the url.

I always got:

InvalidTypeException: Invalid type for path "rizza_calendar.class.model.calendar". Expected scalar, but got array.

Any idea how this can happen?

I also tried to execute

php app/console doctrine:schema:update --force

to generate my database tables, but get the same error.

Thanks for help

@dao
Copy link
Contributor

dao commented Sep 17, 2012

your config should look something like this:

rizza_calendar:
    db_driver: mongodb
    class:
        model:
            calendar: Application\Rizza\CalendarBundle\Document\Calendar
            event: Application\Rizza\CalendarBundle\Document\Event
            user: Application\Sonata\UserBundle\Document\User
            attendee: Application\Rizza\CalendarBundle\Document\Attendee

I also had to define a couple parameters:

parameters:
    rizza_calendar.calendar_document.class: Application\Rizza\CalendarBundle\Document\Calendar
    rizza_calendar.event_document.class: Application\Rizza\CalendarBundle\Document\Event

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

2 participants