Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-9

Unexpected: MappedSuperclass private property without annotation becomes persisted

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0ALPHA1
    • Fix Version/s: 1.0.0ALPHA1
    • Component/s: None
    • Labels:
      None
    • Environment:
      OS X, latest ODM checkout

      Description

      /** @MappedSuperclass */
      class Model {
      
          private $errors = array();
      
          protected function getErrors() {
              return $this->errors;
          }
      }
      
      /**
       * @Document(db="mydb", collection="data")
       */
      class Data extends Model {
          /**
           * @Id
           */
          public $id;
      
          /**
           * @String
           */
          public $name;
      }
      

      Did not expect, that $errors goes into mongo.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: