Skip to content

Commit

Permalink
Use hasColumn instead of containsColumn.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesiscoding committed Oct 23, 2019
1 parent 72db491 commit 28ce36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Fixtures/Model/om/BaseBookPeer.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ public static function doValidate($obj, $cols = null)
}

foreach ($cols as $colName) {
if ($tableMap->containsColumn($colName)) {
if ($tableMap->hasColumn($colName)) {
$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
$columns[$colName] = $obj->$get();
}
Expand Down

0 comments on commit 28ce36a

Please sign in to comment.