|
@@ 275-282 (lines=8) @@
|
| 272 |
|
} |
| 273 |
|
} |
| 274 |
|
$property->setRefCollection($urls); |
| 275 |
|
} elseif ($meta->getTypeOfField($field) === 'collection') { |
| 276 |
|
$itemSchema = new Schema(); |
| 277 |
|
$property->setType('array'); |
| 278 |
|
$itemSchema->setType($this->getCollectionItemType($meta->name, $field)); |
| 279 |
|
|
| 280 |
|
$property->setItems($itemSchema); |
| 281 |
|
$property->setFormat(null); |
| 282 |
|
} elseif ($meta->getTypeOfField($field) === 'datearray') { |
| 283 |
|
$itemSchema = new Schema(); |
| 284 |
|
$property->setType('array'); |
| 285 |
|
$itemSchema->setType('string'); |
|
@@ 290-297 (lines=8) @@
|
| 287 |
|
|
| 288 |
|
$property->setItems($itemSchema); |
| 289 |
|
$property->setFormat(null); |
| 290 |
|
} elseif ($meta->getTypeOfField($field) === 'hasharray') { |
| 291 |
|
$itemSchema = new Schema(); |
| 292 |
|
$itemSchema->setType('object'); |
| 293 |
|
|
| 294 |
|
$property->setType('array'); |
| 295 |
|
$property->setItems($itemSchema); |
| 296 |
|
$property->setFormat(null); |
| 297 |
|
} |
| 298 |
|
$schema->addProperty($documentFieldNames[$field], $property); |
| 299 |
|
} |
| 300 |
|
|