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

Use INI entries to control ORM options #1796

Merged
merged 2 commits into from Jan 13, 2014
Merged

Use INI entries to control ORM options #1796

merged 2 commits into from Jan 13, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jan 12, 2014

ie,

[phalcon]
extension = phalcon.so
phalcon.orm.events = On
phalcon.orm.virtual_foreign_keys = On
phalcon.orm.column_renaming = On
phalcon.orm.not_null_validations = On
phalcon.orm.exception_on_failed_save = Off
phalcon.orm.enable_literals = On

@ghost
Copy link
Author

ghost commented Jan 12, 2014

We can use INI settings to control backwards compatibility. For example, if we some day decide to use lowercased paths for views, we can use INI settings to choose either the new or the old behavior at run-time.

phalcon pushed a commit that referenced this pull request Jan 13, 2014
Use INI entries to control ORM options
@phalcon phalcon merged commit 2924a4d into phalcon:1.3.0 Jan 13, 2014
@phalcon
Copy link
Collaborator

phalcon commented Jan 13, 2014

Thanks, we need to add this to the documentation

@ghost ghost deleted the ini branch January 13, 2014 16:30
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.

3 participants