I'd like to implement ActiveRecord pattern in my application, however it want to keep it really simple:
* You add database structure, let's say table posts with 3 columns: id, title, body.
* You create class Post:
PHP Code:
<?php
class Post extends ActiveRecord {}
?>
That's all, you're free to go. The only problem is, that when I use:
Post::find that is declared in ActiveRecord I cannot aquire the class that was called. Even debug backtrace shows it as ActiveRecord::find instead of Post::find.
Do you have any idea to get past it? Or maybe creating PostFinder object is the way to go? Or maybe scaffoling?