I am not sure what I'm doing wrong but it seems like I might be missing something obvious. My getters on my model are not working:
class Post extends \Phalcon\Mvc\Model
{
public $title;
public function getTitle()
{
return "foo";
}
}
And with the calls below, I expect "foo" to be returned but instead, it returns the original title of the post:
$post = Post::findFirst(1);
echo $post->title; // "original title";
I also tried setting the $title property to protected instead of public but that breaks. Am I missing something obvious?