You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Utils/DirectForeignKeyMethodDescriptor.php
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -36,10 +36,6 @@ class DirectForeignKeyMethodDescriptor implements MethodDescriptorInterface
36
36
* @var NamingStrategyInterface
37
37
*/
38
38
private$namingStrategy;
39
-
/**
40
-
* @var AnnotationParser
41
-
*/
42
-
private$annotationParser;
43
39
/**
44
40
* @var string
45
41
*/
@@ -133,7 +129,7 @@ public function getCode() : array
133
129
if ($this->hasLocalUniqueIndex()) {
134
130
$getter->setDocBlock(sprintf('Returns the %s pointing to this bean via the %s column.', $beanClass, implode(', ', $this->foreignKey->getUnquotedLocalColumns())));
if ($descriptorinstanceof ScalarBeanPropertyDescriptor && $descriptor->getColumnName() === $column) {
271
+
return$descriptor;
272
+
}
273
+
}
274
+
thrownewTDBMException('PropertyDescriptor for `'.$this->table->getName().'`.`' . $column . '` not found in `' . $this->foreignBeanDescriptor->getTable()->getName() . '`');
Copy file name to clipboardExpand all lines: src/Utils/PivotTableMethodsDescriptor.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -200,28 +200,28 @@ public function getCode() : array
200
200
201
201
$getter = newMethodGenerator($this->getName());
202
202
$getter->setDocBlock(sprintf('Returns the list of %s associated to this bean via the %s pivot table.', $remoteBeanName, $this->pivotTable->getName()));
$adder->setDocBlock(sprintf('Adds a relationship with %s associated to this bean via the %s pivot table.', $remoteBeanName, $this->pivotTable->getName()));
$remover->setDocBlock(sprintf('Deletes the relationship with %s associated to this bean via the %s pivot table.', $remoteBeanName, $this->pivotTable->getName()));
0 commit comments