mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2101 [hprojects-module] Housing Projects / Konut Projeleri Modülü yapılması
This commit is contained in:
parent
a147b27dff
commit
0cb954c8e6
@ -11,6 +11,7 @@ use Visiosoft\LocationModule\City\CityModel;
|
||||
use Visiosoft\LocationModule\Country\CountryModel;
|
||||
use Visiosoft\CartsModule\Cart\Command\GetCart;
|
||||
use Visiosoft\LocationModule\District\DistrictModel;
|
||||
use Visiosoft\LocationModule\Neighborhood\NeighborhoodModel;
|
||||
|
||||
class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||
{
|
||||
@ -363,4 +364,11 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||
$district = $districtModel->newQuery()->find($this->district);
|
||||
return $district ? $district->name : false;
|
||||
}
|
||||
|
||||
public function getNeighborhood()
|
||||
{
|
||||
$neighborhoodModel = new NeighborhoodModel();
|
||||
$neighborhood = $neighborhoodModel->newQuery()->find($this->neighborhood);
|
||||
return $neighborhood ? $neighborhood->name : false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user