i have a list of records, but only print id of table
$cidades = CidadeFactory::listCidadeByQuery(null, null);
if (!is_null($cidades)) {
foreach($cidades as $cidade) {
echo $cidade."-";
echo '<br>';
}
}
//===PRINT======//
2-
6-
2 record(s) retrieved.
//===PRINT======//
i need print the name property OF THE object $cidade
is $cidade->getName(); ?
can help?
tanks