[eluser]NachoF[/eluser]
[quote author="cube1893" date="1242151563"]
With a given continent abbreviation, what's the fastest way to get the corresponding countries for that continent?
Cheers,
cube1893[/quote]
Code:
$continent=new Continent();
$continent->get_by_abbreviation('your_abbreviation_here'); //assuming there is just one continent with that abbreviation
$c=$continent->country->get();
foreach($c->all as $country)
{
echo $country->name; //or whatever you want to do with each related country.
}