Skip to content

Commit 5f1b708

Browse files
committed
cleanup
1 parent cb0f534 commit 5f1b708

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private function isOperationOnColumnAllowed(String $operation, String $tableName
8787
private function setPath(String $tableName) /*: void*/
8888
{
8989
$table = $this->reflection->getTable($tableName);
90-
$type = $table->getType($tableName);
90+
$type = $table->getType();
9191
$pk = $table->getPk();
9292
$pkName = $pk ? $pk->getName() : '';
9393
foreach ($this->operations as $operation => $method) {
@@ -137,7 +137,7 @@ private function setPath(String $tableName) /*: void*/
137137
private function setComponentSchema(String $tableName) /*: void*/
138138
{
139139
$table = $this->reflection->getTable($tableName);
140-
$type = $table->getType($tableName);
140+
$type = $table->getType();
141141
$pk = $table->getPk();
142142
$pkName = $pk ? $pk->getName() : '';
143143
foreach ($this->operations as $operation => $method) {
@@ -179,7 +179,7 @@ private function setComponentSchema(String $tableName) /*: void*/
179179
private function setComponentResponse(String $tableName) /*: void*/
180180
{
181181
$table = $this->reflection->getTable($tableName);
182-
$type = $table->getType($tableName);
182+
$type = $table->getType();
183183
$pk = $table->getPk();
184184
$pkName = $pk ? $pk->getName() : '';
185185
foreach (['list', 'read'] as $operation) {

0 commit comments

Comments
 (0)