A question about Active Record |
[eluser]Unknown[/eluser]
Hello, I hereby welcome myself to the forum :-) I would like to have a function that returns the first and only result from a result, and gives an error if there is more than one row. Simple to implement, I know, but it would be a feature worthy of being built in the Active Record I think. It does exist in the Hibernate API (and I love it): http://www.hibernate.org/hib_docs/v3/api...ueResult() What do you guys think?
[eluser]nate_02631[/eluser]
Hard to see a lot of practical uses for it - if you're asking if it should be implemented in CI core, it might better asked in the Feature Request forum. As you say, though - very trivial to implement in either the model or controller...
[eluser]Unknown[/eluser]
Such a function makes the application a bit less error-prone I think. |
Welcome Guest, Not a member yet? Register Sign In |