Créer un compte ou loggez-vous pour pouvoir ajouter, commenter et noter les snippets.

Navigation

Tags relatifs

my Symfony Plugins

Plugins demos


My bookmarks

Vous pouvez commenter/noter en utilisant le compte anonymous (mot de passe: anonymous)
You can comment/rate using the anonymous account (password: anonymous).

Snippets taggés : "propel schema" Snippets taggés : "propel schema"

[symfony] Extraire une table par batch d'un schema.xml - 153 view(s)

  // Delete external tables from plugin schema (already defined in another schema (main or other plugin))
  if (DCMC_EXTERNAL_TABLE) {
    foreach (explode(',', DCMC_EXTERNAL_TABLES) as $external_table) {
      $reg_exp = '/(<table name="'. $external_table. ')(((.)*(\s)*)*?)(<\/table>)/';
      $xmlstr = preg_replace($reg_exp, '', $xmlstr);
    }
  }
 
par COil le 2008-09-29, taggé : propel  regexp  schema  symfony  xml 
(1 commentaire)
Debug toolbar