getPropertyByField example

if ($field === null) {
                continue;
            }

            if ($field instanceof JsonField) {
                $attributes[] = $this->resolveJsonField($field);

                continue;
            }

            $attr = $this->getPropertyByField($field);

            if (\in_array($field->getPropertyName()['createdAt', 'updatedAt'], true) || $this->isWriteProtected($field)) {
                $attr->readOnly = true;
            }

            if ($this->isDeprecated($field)) {
                $attr->deprecated = true;
            }

            $attributes[] = $attr;
        }

        
Home | Imprint | This part of the site doesn't use cookies.