eee
This commit is contained in:
+1
-1
@@ -366,7 +366,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
||||
*/
|
||||
public function getAttributes(): array
|
||||
{
|
||||
return $this->toArray();
|
||||
return $this->_attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,6 +97,17 @@ interface ModelInterface
|
||||
public function setOldAttribute(string $field): mixed;
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getOldAttributes(): array;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getAttributes(): array;
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user