This commit is contained in:
2021-03-16 10:43:27 +08:00
parent b3ee1fc3bf
commit e98bbc0a31
+3
View File
@@ -268,6 +268,9 @@ class ActiveRecord extends BaseActiveRecord
public function toArray(): array
{
$data = $this->_attributes;
var_dump($this->getAnnotation(self::ANNOTATION_GET));
foreach ($this->getAnnotation(self::ANNOTATION_GET) as $key => $item) {
if (!isset($data[$key])) continue;