Browse Source

changed a hard coded class string to be dynamic

pull/1/head
Cerys Lewis 2 weeks ago
parent
commit
aa14dcdb61
  1. 2
      src/SchemaBuilder/SchemaBuilder.php

2
src/SchemaBuilder/SchemaBuilder.php

@ -85,7 +85,7 @@ class SchemaBuilder
foreach ($property->getAttributes() as $attribute) foreach ($property->getAttributes() as $attribute)
{ {
if($attribute->getName() != "Darksparrow\AuxiliumSchemaBuilder\Attributes\SchemaDocumentField") if($attribute->getName() != SchemaDocumentField::class)
continue; continue;
foreach($attribute->getArguments() as $key=>$value) foreach($attribute->getArguments() as $key=>$value)

Loading…
Cancel
Save