You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can you add ->fetchKey('some_key') it's will be similar to fetchPairs but embed all row
function fetchKey($key) {
$return = array();
foreach ($this as $row) {
$return[$row[$key]] = $row;
}
return $return;
}
Now I can overcome the missing joins functionality
$leads = $nORM->leads()->where($criteria)->order('leads.id DESC');
$leads_data = $nORM->leads_data()->where('lead_id', $leads)->fetchKey('lead_id');
The text was updated successfully, but these errors were encountered:
can you add ->fetchKey('some_key') it's will be similar to fetchPairs but embed all row
function fetchKey($key) {
$return = array();
foreach ($this as $row) {
$return[$row[$key]] = $row;
}
return $return;
}
Now I can overcome the missing joins functionality
$leads = $nORM->leads()->where($criteria)->order('leads.id DESC');
$leads_data = $nORM->leads_data()->where('lead_id', $leads)->fetchKey('lead_id');
The text was updated successfully, but these errors were encountered: