I have the following model:
/**
* @Primary
* @Identity
* @Column(name="person_id", type="integer", nullable=false)
*/
public $id;
/**
* @Column(name="str_name", type="string", length=50, nullable=false)
*/
public $name;
/**
* @Column(name="str_lastName", type="string", length=50, nullable=false)
*/
public $lastName;
/**
* @Column(name="dt_birthday", type="date", length=15, nullable=false)
*/
public $dBirhtday;
/**
* @Column(name="country_id", type="string", length=30, nullable=false)
*/
public $country;
... getters and setters ...
And i have the following code:
$pes = Person::findFirst(1);
echo '<pre>';
var_dump($pes);
echo '</pre>';
When I try to print any getter value, it is null.
What am I doing wrong? Why the model is not being loaded????
Thanks,