We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cec58db + 9bd61e6 commit bd6eb21Copy full SHA for bd6eb21
src/Kodeine/Metable/Metable.php
@@ -351,7 +351,7 @@ public function setAttributes(array $attributes) {
351
* @return boolean
352
*/
353
public function hasColumn($column) {
354
- if(empty(self::$_columnNames)) self::$_columnNames = array_map('strtolower',\Schema::connection($this->connection)->getColumnListing($this->getTable()));
+ if(empty(self::$_columnNames)) self::$_columnNames = array_map('strtolower',\Schema::connection($this->getConnectionName())->getColumnListing($this->getTable()));
355
return in_array(strtolower($column), self::$_columnNames);
356
}
357
0 commit comments