改名
This commit is contained in:
@@ -268,9 +268,6 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
public function toArray(): array
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
$data = $this->_attributes;
|
$data = $this->_attributes;
|
||||||
|
|
||||||
var_dump($this->getAnnotation(self::ANNOTATION_GET));
|
|
||||||
|
|
||||||
foreach ($this->getAnnotation(self::ANNOTATION_GET) as $key => $item) {
|
foreach ($this->getAnnotation(self::ANNOTATION_GET) as $key => $item) {
|
||||||
if (!isset($data[$key])) continue;
|
if (!isset($data[$key])) continue;
|
||||||
|
|
||||||
|
|||||||
@@ -230,6 +230,7 @@ class Columns extends Component
|
|||||||
*/
|
*/
|
||||||
public function hasField(string $name): bool
|
public function hasField(string $name): bool
|
||||||
{
|
{
|
||||||
|
var_dump($name, array_key_exists($name, $this->getFields()));
|
||||||
return array_key_exists($name, $this->getFields());
|
return array_key_exists($name, $this->getFields());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user