Hi!
I have a model named User
, and I cannot get any of its functions work whether I get the model from a query.
<?php
use Phalcon\Mvc\Model;
class User extends Model
{
public $id;
public $name;
public function getSomeExtraData()
{
return 'something';
}
}
?>
Whether I use User::find()
, I cannot execute the getSomeExtraData()
function on any of the returned Simple
objects.