File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1313use function get_class ;
1414use function is_string ;
1515use function sprintf ;
16- use function strpos ;
1716use function strrpos ;
18- use function substr ;
1917use 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
You can’t perform that action at this time.
0 commit comments