Skip to content

Commit

Permalink
remove unused id from mapped-superclass def, fix entitymanager->docum…
Browse files Browse the repository at this point in the history
…entmanager annotations
  • Loading branch information
dao committed Sep 17, 2012
1 parent e30db5c commit 8d872fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Document/AttendeeManager.php
Expand Up @@ -17,7 +17,7 @@ class AttendeeManager extends BaseAttendeeManager
protected $em;

/**
* @var EntityRepository
* @var DocumentRepository
*/
protected $repo;

Expand Down
4 changes: 2 additions & 2 deletions Document/CalendarManager.php
Expand Up @@ -14,12 +14,12 @@ class CalendarManager extends BaseCalendarManager
{

/**
* @var EntityManager
* @var DocumentManager
*/
protected $em;

/**
* @var EntityRepository
* @var DocumentRepository
*/
protected $repo;

Expand Down
4 changes: 2 additions & 2 deletions Document/EventManager.php
Expand Up @@ -15,12 +15,12 @@ class EventManager extends BaseEventManager
{

/**
* @var EntityManager
* @var DocumentManager
*/
protected $em;

/**
* @var EntityRepository
* @var DocumentRepository
*/
protected $repo;

Expand Down
3 changes: 1 addition & 2 deletions Resources/config/doctrine/Calendar.mongodb.xml
Expand Up @@ -5,12 +5,11 @@
http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">

<mapped-superclass name="Rizza\CalendarBundle\Document\Calendar" table="calendar_calendar">
<!-- <field name="id" id="true"/>-->

<field name="name" fieldName="name" type="string" />
<field name="visibility" fieldName="visibility" type="int" />

<reference-many name="events" fieldName="events" target-document="Rizza\CalendarBundle\Document\Event" />

</mapped-superclass>

</doctrine-mongo-mapping>

0 comments on commit 8d872fa

Please sign in to comment.