Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Persister
    • Labels:
      None
    • Environment:
      php 5.3 macosx 10.7.3 mongodb-odm 1.0 mongodb v2.0.2

      Description

      @ReferenceMany doesn't seem to work when used within a child class unless I specify @InheritanceType("CLASS_PER_COLLECTION") (which is fine b/c that works for our architecture)

      Here is an example from our code:

      //Parent Class

      use Doctrine\Common\Collections\ArrayCollection;

      /**

      • @Document(collection="homepages")
      • @ChangeTrackingPolicy("DEFERRED_IMPLICIT")
      • @Indexes({
      • @Index(keys= {"vertical"="asc","ts"="desc"}

        , safe="true"),

      • @Index(keys= {"ts"="desc"}

        , safe="true")

      • })
        */
        class Homepage extends MappedDocument
        {

      //** References
      /**

      • @ReferenceMany(targetDocument="Post")
      • @var list<Post>
        */
        protected $touts;

      }

      //Child Class
      /**

      • @Document(collection="readmes")
      • @ChangeTrackingPolicy("DEFERRED_IMPLICIT")
      • @Indexes({
      • @Index(keys= {"vertical"="asc"}

        , safe="true")

      • })
        */
        class Readme extends Homepage { //** References /** * @ReferenceMany(targetDocument="Post") * @var list<Post> */ protected $more_touts; }

      If I don't add the @InheritanceType annotation the $more_touts data never gets persisted into the DB.
      Other types such as @ReferenceOne all work just fine

        Activity

        julie sommerville created issue -

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=MODM-163, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            julie sommerville
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: