File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,13 @@ foreach(var property in entity.Properties.Where(prop => prop.Type.GetTypeString(
117117 public function get<#=propertyName.ToCheckedCase()#>()
118118 {
119119 if (array_key_exists("<#=property.Name.ToCamelize()#>", $this->_propDict)) {
120+ <#
121+ // Check whether this type is a generated model type or a PHP type
122+ if (property.Type.GetTypeString()[0] == '\\') { #>
123+ if (is_a($this->_propDict["<#=property.Name.ToCamelize()#>"], "<#=property.Type.GetTypeString()#>")) {
124+ <# } else { #>
120125 if (is_a($this->_propDict["<#=property.Name.ToCamelize()#>"], "Microsoft\Graph\Model\<#=property.Type.GetTypeString()#>")) {
126+ <# } #>
121127 return $this->_propDict["<#=property.Name.ToCamelize()#>"];
122128 } else {
123129<# if (property.Type.GetTypeString() == "\\GuzzleHttp\\Psr7\\Stream") { #>
You can’t perform that action at this time.
0 commit comments