Hello,
In j3.6 + php7 following return a list of strings. Columns data types are not rendered.
<?php
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->qn('#__users'));
$db->setQuery($query);
?>
<pre><?php echo var_dump( $db->loadObjectList()); ?></pre>
More problematic is
<?php
$user = JFactory::getUser();
$user_id = $user->id;
?>
$user_id is not recognized as an integer.
Do you know how to return data with their native type?
Regards
Michel
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-12-22 12:59:21 |
Closed_By | ⇒ | Bakual |
I don't think you can return them in the native type. They always come back as strings.
Just use this: