本文整理汇总了PHP中Doctrine\DBAL\Schema\AbstractSchemaManager::listViews方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractSchemaManager::listViews方法的具体用法?PHP AbstractSchemaManager::listViews怎么用?PHP AbstractSchemaManager::listViews使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Doctrine\DBAL\Schema\AbstractSchemaManager
的用法示例。
在下文中一共展示了AbstractSchemaManager::listViews方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_views
/**
* Gets array \Doctrine\DBAL\Schema\View
*
* @return array
*/
public function get_views()
{
/**
* get views
*/
$views = $this->sm->listViews();
return $views;
}
示例2: testCreateAndListViews
public function testCreateAndListViews()
{
$this->createTestTable('view_test_table');
$name = "doctrine_test_view";
$sql = "SELECT * FROM view_test_table";
$view = new \Doctrine\DBAL\Schema\View($name, $sql);
$this->_sm->dropAndCreateView($view);
$views = $this->_sm->listViews();
}
示例3: testCreateAndListViews
public function testCreateAndListViews()
{
if (!$this->_sm->getDatabasePlatform()->supportsViews()) {
$this->markTestSkipped('Views is not supported by this platform.');
}
$this->createTestTable('view_test_table');
$name = "doctrine_test_view";
$sql = "SELECT * FROM view_test_table";
$view = new \Doctrine\DBAL\Schema\View($name, $sql);
$this->_sm->dropAndCreateView($view);
$views = $this->_sm->listViews();
}