Skip to content

Commit be87294

Browse files
committed
make DatabaseMap::hasTable() work with schema tables
1 parent 4b3e5c4 commit be87294

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/Propel/Runtime/Map/DatabaseMap.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
use function get_class;
1414
use function is_string;
1515
use function sprintf;
16-
use function strpos;
1716
use function strrpos;
18-
use function substr;
1917
use function substr_replace;
2018

2119
/**
@@ -227,18 +225,12 @@ public function registerTableMapClasses(array $tableMapClasses): void
227225
}
228226

229227
/**
230-
* Does this database contain this specific table?
228+
* @param string $name
231229
*
232-
* @param string $name The String representation of the table.
233-
*
234-
* @return bool True if the database contains the table.
230+
* @return bool
235231
*/
236232
public function hasTable(string $name): bool
237233
{
238-
if (strpos($name, '.') > 0) {
239-
$name = substr($name, 0, strpos($name, '.'));
240-
}
241-
242234
return isset($this->tables[$name]);
243235
}
244236

0 commit comments

Comments
 (0)