Classes/Command/SeederCommandController.php 1 location
|
@@ 218-220 (lines=3) @@
|
215 |
|
throw new \InvalidArgumentException('Class ' . $class . ' already exists.'); |
216 |
|
} |
217 |
|
|
218 |
|
if (!isset($GLOBALS['TCA'][$tableName])) { |
219 |
|
throw new \InvalidArgumentException('Configuration for ' . $tableName . ' not Found!'); |
220 |
|
} |
221 |
|
$informations = $this->detectSeederInformations($tableName); |
222 |
|
|
223 |
|
$seederClass = $this->getSeederClass($this->namespace, $className, $tableName, $informations); |
Classes/Provider/TableConfiguration.php 1 location
|
@@ 61-65 (lines=5) @@
|
58 |
|
*/ |
59 |
|
public function __construct($tableName) |
60 |
|
{ |
61 |
|
if (!isset($GLOBALS['TCA'][$tableName])) { |
62 |
|
throw new \InvalidArgumentException( |
63 |
|
'Configuration for table ' . $tableName . ' not found!' |
64 |
|
); |
65 |
|
} |
66 |
|
$this->name = $tableName; |
67 |
|
$this->tableConfiguration = $GLOBALS['TCA'][$tableName]; |
68 |
|
} |