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

CFCs from ORM are partially serialized #2

Open
codymartin opened this issue Sep 10, 2013 · 4 comments
Open

CFCs from ORM are partially serialized #2

codymartin opened this issue Sep 10, 2013 · 4 comments

Comments

@codymartin
Copy link

I don't have time to write up a test case but I'm struggling with this scenario and can not find anyone talking about it.

I have an ORM CFC with a string property:

property name="CompanyName"  column="company"   type="string";

serializeJSON drops this field, any field, that has a null value in the database. Upon passing the component to serializeJSON, I verified that the field is in the component object and is type=string and has an empty string as its value. SerializeJSON drops it completely instead of including it with a value of "".

I'm using CF 10

@codymartin
Copy link
Author

If I add default="" to the property, it is returned.

@atuttle
Copy link
Owner

atuttle commented Sep 10, 2013

Thanks for logging the issue here. Has a corresponding bug been logged with Adobe at all? If so, please link it here, too! :)

@codymartin
Copy link
Author

I couldn't find one in the bugbase. If I don't find that its really me that is bugged and not serializeJSON, I'll submit it. I really don't know if my expectation is legit.

@atuttle
Copy link
Owner

atuttle commented Sep 10, 2013

I think null should be serialized as null. Sounds like a bug to me.

Cody wrote:

I couldn't find one in the bugbase. If I don't find that its really me
that is bugged and not serializeJSON, I'll submit it. I really don't
know if my expectation is legit.


Reply to this email directly or view it on GitHub
#2 (comment).

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