Take the 2-minute tour ×  I apologize for the confusing title, I
was a little stumped as to how to word my question.  I am new to
CakePHP, but am following along through the cookbook/tutorials
nicely, however I have come up against something which I cannot
find an answer to.  My structure is as follows:  'Invoices'
hasMany 'InvoiceHistory' 'InvoiceHistory' belongsTo
'InvoiceHistoryDeliveryStatus'  Whereby, an invoice can have
multiple invoice histories, and each history contains a delivery
status id, which links to a name.  On the Invoice view
(index.ctp) I am displaying a list of all invoices but wish to
display the Most Recent Delivery Status Name (InvoiceHistory
contains a date field so it can be sorted) - thereby displaying
the 'current Delivery Status'. When I do:
$this->set('invoices', $this->Invoice->find('all'));  It does
not go deep enough in what it returns to provide me with
Delivery Status Names, nor have I deduced a way of only
returning the most recent Invoice History within my result. I
know h