Should I upgrade to Java 8?

With the recent release of Java 8, already people are asking: should we be doing new development with the new version? Should we upgrade our existing application? While it makes sense to begin planning for future development in Java 8 and bringing your developers up to speed on the new features such as functional interfaces…

Solution: “Undefined Property: primaryKey” in CakePHP 2

File this one under the “facepalm” category… If you ever get this confusing error from CakePHP 2, it almost certainly means you forgot to extend the AppModel class. Undefined property: MyModel::$primaryKey [CORE/Cake/Controller/Scaffold.php, line 131] Undefined property: MyModel::$displayField [CORE/Cake/Controller/Scaffold.php, line 132] Fatal Error Error: Call to undefined method Question::schema() File: lib/Cake/Controller/Scaffold.php Line: 137 The solution is…