Exemplo n.º 1
0
 /**
  * Adds soft attributes support to magic __isset method
  * @see EMongoEmbeddedDocument::__isset()
  * @since v1.3.4
  */
 public function __isset($name)
 {
     if (array_key_exists($name, $this->softAttributes)) {
         // Use of array_key_exists is mandatory !!!
         return true;
     } else {
         return parent::__isset($name);
     }
 }