Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addresse keytype conflict #1310

Merged
merged 2 commits into from
Sep 25, 2017
Merged

addresse keytype conflict #1310

merged 2 commits into from
Sep 25, 2017

Conversation

bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Sep 25, 2017

Any object extending Google_Model looks for the property name appended with Type to decide if that property is a complex type. If $property + 'Type' exists, the library tries to instantiate a class of $property + 'type'.

In the case of DfaReporting, both $duration and $durationType are valid properties, and $duration is not a complex type. This change ensures that the classes exist before trying to create them, thus getting around the typing conflict.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 25, 2017
@bshaffer bshaffer merged commit f3a84d1 into master Sep 25, 2017
@bshaffer bshaffer deleted the issue-1308 branch September 25, 2017 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants