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

Created, LastEdited never seem to be returned #83

Open
MichaelJJames opened this issue Nov 14, 2017 · 3 comments
Open

Created, LastEdited never seem to be returned #83

MichaelJJames opened this issue Nov 14, 2017 · 3 comments

Comments

@MichaelJJames
Copy link

Hi,

When getting a DataObject /api/view/ I don't seem to getting Created or LastEdited returned.

Thanks
Michael

@colymba
Copy link
Owner

colymba commented Nov 15, 2017

Hei! I might be wrong but am not sure SilverStripe include those with the normal DataObject::get call, I think they might be cleaned out of the result. But you could add them back in the after/beforeSerialize hooks.

@MichaelJJames
Copy link
Author

Hi @colymba,

I think Silverstripe returns all fields on a DO::get ill try the afterSerialize to see if it gets returned.

Thanks
Michael

@colymba
Copy link
Owner

colymba commented Dec 13, 2017

@MichaelJJames let me know if you find something about those fixed_fields. But best I can recall this model just return what the ORM gives it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants