I can not get the data Country and Code

$query = R::findAll('country'); var_dump($query); object(RedBeanPHP\OODBBean)#18 (10) { ["properties":protected]=> array(3) { ["id"]=> string(1) "1" ["Code"]=> string(3) "ABW" ["Name"]=> string(5) "Aruba" } ["__info":protected]=> array(7) { ["type"]=> string(7) "country" ["sys.id"]=> string(2) "id" ["sys.orig"]=> array(3) { ["id"]=> string(1) "1" ["Code"]=> string(3) "ABW" ["Name"]=> string(5) "Aruba" } ["tainted"]=> bool(false) ["changed"]=> bool(false) ["changelist"]=> array(0) { } ["model"]=> NULL } ["beanHelper":protected]=> object(RedBeanPHP\BeanHelper\SimpleFacadeBeanHelper)#11 (0) { } ["fetchType":protected]=> NULL ["withSql":protected]=> string(0) "" ["withParams":protected]=> array(0) { } ["aliasName":protected]=> NULL ["via":protected]=> NULL ["noLoad":protected]=> bool(false) ["all":protected]=> bool(false) } 

$ query [1] -> id get a string with 1, with $ query [1] -> Code or $ query [1] -> Name get NULL. How to be?

  • UPD: Solved! In the database indicated the name with a small letter and earned! - Alexander Stashkevich

1 answer 1

UPD: Solved! In the database indicated the name with a small letter and earned