Description Of This Idea:
Restrict visibility of ::db() method of model so it will not be accessible
outside the class, so all queries will be inside the class (e.g. not query`able
in controllers and other classes)
How Can This Idea Help:
Uniform location for queries, "model"-"controller" separation
How To Implement This Idea:
simply change
public static db() to
protected static db()
or
private static db()
Original issue reported on code.google.com by albertdi...@gmail.com on 8 May 2013 at 6:34
Original issue reported on code.google.com by
albertdi...@gmail.com
on 8 May 2013 at 6:34