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

[GraphQL] not recognizing doctrine custom data type #1759

Closed
leesiongchan opened this issue Mar 9, 2018 · 5 comments
Closed

[GraphQL] not recognizing doctrine custom data type #1759

leesiongchan opened this issue Mar 9, 2018 · 5 comments

Comments

@leesiongchan
Copy link
Contributor

    // Third party data type
    /**
     * @var PhoneNumber
     *
     * @ORM\Column(type="phone_number", nullable=false)
     */
    protected $phoneNumber;
    // Enum type
    /**
     * @var Status
     *
     * @ORM\Column(type="lead_status_enum", nullable=false)
     * @ApiProperty()
     */
    protected $status;
@Simperfit
Copy link
Contributor

@alanpoulain

@leesiongchan
Copy link
Contributor Author

ping @alanpoulain @Simperfit any thoughts?

@alanpoulain
Copy link
Member

Sorry for taking so much time to answer.
It's because of:

} catch (ResourceClassNotFoundException $e) {
// Skip objects that are not resources for now
return null;
}

There is some work to be done in order to manage this kind of objects correctly.

@kiler129
Copy link

for anyone wondering (cc @leesiongchan) there's a way to sort-of achieve that which I discovered in api-platform/api-platform#995

@soyuka
Copy link
Member

soyuka commented Oct 22, 2021

let's regroup this into #2254

@soyuka soyuka closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants