Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Commit 02fd222

Browse files
committed
Ignoring groups when compiling
1 parent f8b44be commit 02fd222

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,13 @@ IDE Helper and Auto-Complete Support
253253

254254
To integrate this extension with your IDE (PhpStorm, Eclipse etc.) and get auto-complete support, simply include `stubs\ProtobufMessage.php` anywhere under your project root.
255255

256+
Known issues
257+
------------
258+
259+
* [maps](https://developers.google.com/protocol-buffers/docs/proto#maps) are not fully supported ([#73](https://github.com/allegro/php-protobuf/issues/73))
260+
* [oneof](https://developers.google.com/protocol-buffers/docs/proto#oneof) is not supported ([#72](https://github.com/allegro/php-protobuf/issues/72))
261+
* [groups](https://developers.google.com/protocol-buffers/docs/proto#groups) are not supported
262+
256263
References
257264
----------
258265

src/Allegro/Protobuf/Compiler/PhpGenerator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ private function _addMessageDescriptor(
235235
. 'oneof is not supported (https://github.com/allegro/php-protobuf/issues/72).');
236236
$ignoredOneofs[] = $oneofIndex;
237237
}
238+
} else if ($fieldDescriptorProto->getType()) {
239+
$name = $fieldDescriptorProto->getName();
240+
Logger::warn("Ignoring '${name}' field, groups are not supported.");
238241
} else {
239242
$fieldDescriptor = new FieldDescriptor();
240243
$fieldDescriptor->setName($fieldDescriptorProto->getName());

0 commit comments

Comments
 (0)