We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f60a2 commit ddd88efCopy full SHA for ddd88ef
orm/lib/active_record.php
@@ -137,7 +137,11 @@ public function __repr()
137
138
public function to_array()
139
{
140
- return $this->values;
+ $values = array();
141
+ foreach ($this->meta->attributes as $name => $column)
142
+ if (!array_key_exists($name, $this->meta->relationships))
143
+ $values[$name] = $this->values[$name];
144
+ return $values;
145
}
146
147
public function dump()
0 commit comments