Skip to content

Commit 7e9ed4b

Browse files
authored
Merge pull request #21 from silcki/master
(Fix) watch field nullable if as a resource was specified a method
2 parents f27e685 + 2c6d295 commit 7e9ed4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Common/TsVectorSubscriber.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ private function checkWatchFields(\ReflectionClass $class, \ReflectionProperty $
191191
private function isWatchFieldNullable(\ReflectionClass $class, TsVector $annotation)
192192
{
193193
foreach ($annotation->fields as $fieldName) {
194+
if ($class->hasMethod($fieldName)) {
195+
continue;
196+
}
197+
194198
$property = $class->getProperty($fieldName);
195199
/** @var Column $propAnnot */
196200
$propAnnot = $this->reader->getPropertyAnnotation($property, Column::class);

0 commit comments

Comments
 (0)