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

Commit

Permalink
Ignoring groups when compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
hjagodzinski committed Feb 11, 2018
1 parent f8b44be commit 02fd222
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,13 @@ IDE Helper and Auto-Complete Support

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.

Known issues
------------

* [maps](https://developers.google.com/protocol-buffers/docs/proto#maps) are not fully supported ([#73](https://github.com/allegro/php-protobuf/issues/73))
* [oneof](https://developers.google.com/protocol-buffers/docs/proto#oneof) is not supported ([#72](https://github.com/allegro/php-protobuf/issues/72))
* [groups](https://developers.google.com/protocol-buffers/docs/proto#groups) are not supported

References
----------

Expand Down
3 changes: 3 additions & 0 deletions src/Allegro/Protobuf/Compiler/PhpGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ private function _addMessageDescriptor(
. 'oneof is not supported (https://github.com/allegro/php-protobuf/issues/72).');
$ignoredOneofs[] = $oneofIndex;
}
} else if ($fieldDescriptorProto->getType()) {
$name = $fieldDescriptorProto->getName();
Logger::warn("Ignoring '${name}' field, groups are not supported.");
} else {
$fieldDescriptor = new FieldDescriptor();
$fieldDescriptor->setName($fieldDescriptorProto->getName());
Expand Down

0 comments on commit 02fd222

Please sign in to comment.