Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __set($var, $val)
 {
     if (!static::$comment) {
         static::$comment = new Comment(get_class($this));
     }
     $is_primary_key = $var !== static::DEFAULT_PRIMARY_KEY;
     $is_virtual = static::$comment->doc($var, Annotations::FLAG_PROP_MODIFIER_VIRTUAL);
     if ($is_primary_key && !$is_virtual) {
         $this->update_tracking[] = $var;
     }
     return parent::__set($var, $val);
 }
Ejemplo n.º 2
0
 public function testArrayPropertiesCanBeRetrieved()
 {
     $this->assertEquals(['string $one', 'string $two', 'string $three'], $this->comment->doc('dummyproperty2', 'param'));
 }