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

Escaping modelName for a valid PHP variable name #6

Merged
merged 1 commit into from
Feb 20, 2014

Conversation

davefx
Copy link
Contributor

@davefx davefx commented Feb 14, 2014

When you have a object in database whose ID is a string, and it includes spaces, dashes or accentuated letters, the generated PHP is not valid.
Here is a first approximation for removing the non-valid characters.

When you have a object in database whose ID is a string, and it includes spaces, dashes or accentuated letters, the generated PHP is not valid.
Here is a first approximation for removing the non-valid characters.
@Spea
Copy link
Owner

Spea commented Feb 20, 2014

This may not be the optimal way, but I merge it anyhow. I will provide a better fix for this when I got some spare time

Spea added a commit that referenced this pull request Feb 20, 2014
Escaping modelName for a valid PHP variable name
@Spea Spea merged commit 0156ead into Spea:master Feb 20, 2014
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

Successfully merging this pull request may close these issues.

2 participants