preventDefault example

$createTableSql = $event->getPlatform()->getCreateTableSQL($table);

            /* * Add all the SQL needed to create the table and tell Doctrine * to "preventDefault" so that only our SQL is used. This is * the only way to inject some extra SQL. */
            $event->addSql($createTableSql);
            foreach ($extraSql as $sql) {
                $event->addSql($sql);
            }
            $event->preventDefault();

            return;
        }
    }
}
Home | Imprint | This part of the site doesn't use cookies.