TIP: Use Markdown or, <pre> for multi line code blocks / <code> for inline code.
These forums are read-only and for archival purposes only!
Please join our new forums at discourse.kohanaframework.org
Model/OOP advice: i have a model that represents a "sub-client" which "belongs" to a client model
  • the client model has "many" sub-clients.

    i would prefer to do all of my validation in the models. i have an interface where the user selects a list of sub-clients via checkboxes.

    obviously i do not want to instantiate a bunch of sub-client models to do validation individually on each model as i go through each list of sub-clients. i would prefer to validate with a single query if possible but that seems to defy the whole paradigm.

    how would you go about this?