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

Improvement: make hasMany, belongsTo, ... public #1166

Closed
viktoras25 opened this issue Aug 28, 2013 · 0 comments
Closed

Improvement: make hasMany, belongsTo, ... public #1166

viktoras25 opened this issue Aug 28, 2013 · 0 comments

Comments

@viktoras25
Copy link
Contributor

Currently there are methods in the model, that are protected. However, it is possible to achieve the same effect using modelsManager, so there is no reason to keep them protected.

Discussion on the forum:
http://forum.phalconphp.com/discussion/830/-bug-hasmany-doesn-t-exist-on-model

Methods:
hasOne
hasMany
hasManyToMany
belongsTo
addBehavior
and probably some others, which I don't remember

phalcon pushed a commit that referenced this issue Aug 28, 2013
#1166 Changed visibility from protected to public
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

1 participant