private function getIdActionTableColumnsFromMetadata()
 {
     if ($this->idactionColumns === null) {
         $this->idactionColumns = array();
         foreach (self::$tablesWithIdActionColumns as $table) {
             $columns = $this->tableMetadataAccess->getIdActionColumnNames(Common::prefixTable($table));
             $this->logger->debug("Found following idactions in {table}: {columns}", array('table' => $table, 'columns' => implode(',', $columns)));
             $this->idactionColumns[$table] = $columns;
         }
     }
     return $this->idactionColumns;
 }
Esempio n. 2
0
 /**
  * @dataProvider getTablesWithIdActionColumnsToTest
  */
 public function test_getIdActionColumnNames_CorrectlyReturnsColumnsWithIdActionName($table, $expectedColumns)
 {
     $columns = $this->tableMetadataAccess->getIdActionColumnNames(Common::prefixTable($table));
     $this->assertEquals($expectedColumns, $columns);
 }