deprecations

This commit is contained in:
Yuri Kuznetsov
2023-07-01 22:09:41 +03:00
parent dda95dd741
commit 8b8d08afaa
7 changed files with 18 additions and 59 deletions
+3 -39
View File
@@ -630,7 +630,7 @@ class BaseEntity implements Entity
*/
public function getAttributeList(): array
{
return array_keys($this->getAttributes());
return array_keys($this->attributes);
}
/**
@@ -638,21 +638,12 @@ class BaseEntity implements Entity
*/
public function getRelationList(): array
{
return array_keys($this->getRelations());
return array_keys($this->relations);
}
/**
* @deprecated As of v6.0. Use `getValueMap`.
* @return array<string, mixed>
*/
public function getValues()
{
return $this->toArray();
}
/**
* @deprecated As of v6.0. Use `getValueMap`.
* @todo Make protected.
* @todo Remove in v9.0.
* @return array<string, mixed>
*/
public function toArray()
@@ -686,33 +677,6 @@ class BaseEntity implements Entity
return (object) $array;
}
/**
* @deprecated As of v6.0. Use ORM\Defs instead.
* @return array<string, mixed>
*/
public function getFields()
{
return $this->getAttributes();
}
/**
* @deprecated As of v7.0. Use ORM\Defs instead.
* @return array<string, mixed>
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* @deprecated As of v7.0. Use ORM\Defs instead.
* @return array<string, mixed>
*/
public function getRelations()
{
return $this->relations;
}
/**
* Get an attribute type.
*/