Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

skipTables

  • Loading branch information...
commit 107db8b8339ebb27c6b87beed3347793481a4ec3 1 parent 1668067
Gordon authored

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 lib/Cake/Console/Command/Task/ControllerTask.php
10 lib/Cake/Console/Command/Task/ControllerTask.php
@@ -42,6 +42,13 @@ class ControllerTask extends BakeTask {
42 42 public $path = null;
43 43
44 44 /**
  45 + * Tables to skip when running all()
  46 + *
  47 + * @var array
  48 + */
  49 + public $skipTables = array('i18n');
  50 +
  51 +/**
45 52 * Override initialize
46 53 *
47 54 * @return void
@@ -106,6 +113,9 @@ public function all() {
106 113 ClassRegistry::config('Model', array('ds' => $this->connection));
107 114 $unitTestExists = $this->_checkUnitTest();
108 115 foreach ($this->__tables as $table) {
  116 + if (in_array($table, $this->skipTables)) {
  117 + continue;
  118 + }
109 119 $model = $this->_modelName($table);
110 120 $controller = $this->_controllerName($model);
111 121 App::uses($model, 'Model');

0 comments on commit 107db8b

Please sign in to comment.
Something went wrong with that request. Please try again.