Skip to content

Commit 89948cc

Browse files
committed
sayfa modülü
1 parent 63780eb commit 89948cc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/SistemApi/Model/Base/Model.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ public function getValueByDilIdKey($dilId, $key)
113113
null;
114114
}
115115

116+
if ($this->languages instanceof Collection) {
117+
return isset($this->languages->get($dilId)[$key]) ?
118+
$this->languages->get($dilId)[$key] :
119+
null;
120+
}
121+
116122
return null;
117123
}
118124

src/SistemApi/Model/Sayfa.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* // diğer modeller
1616
*
1717
* @property SayfaKategori kategori
18+
* @property Collection languages
1819
* @property Collection|Kullanici[] yazarlar
1920
*/
2021
class Sayfa extends Model

0 commit comments

Comments
 (0)