(No version information available, might only be in Git)
Collection::existsInDatabase — Check if collection exists in database
Checks if the Collection object refers to a collection in the database.
此函数没有参数。
Returns TRUE
if collection exists in the database, else FALSE
if it does not.
Example #1 mysql_xdevapi\Collection::existsInDatabase() example
<?php
// Assuming $coll is a valid Collection object
if( !$coll->existsInDatabase() ) {
print('Sorry, but the collection do not exists in the provided database!');
}
?>