/** * {@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); }
public function testArrayPropertiesCanBeRetrieved() { $this->assertEquals(['string $one', 'string $two', 'string $three'], $this->comment->doc('dummyproperty2', 'param')); }