I looking around for alternative for EAV design and found non sql database and postgresql - hstore to be the good solution.
May i know whether yii activerecord support hstore out the box???
Page 1 of 1
Postgresql Hstore Support
#2
Posted 20 March 2013 - 09:54 AM
de3p, on 19 March 2013 - 10:34 PM, said:
true, yii have support to make activerecord hstore. I never tried.
http://aimagu.blogspot.com
CEO AIMAGU
CEO AIMAGU
#3
Posted 20 March 2013 - 09:48 PM
Sorry barus sadar kalo postnya di regional Indonesia, padahal mau ngepost di general forumnya.
Iya gak support rasanya, dah coba dikenali sebagai string rasanya harus parse sendiri afterfind sama beforesavenya..
sementara yg tak coba
meta_field itu tipe hstorenya..
Iya gak support rasanya, dah coba dikenali sebagai string rasanya harus parse sendiri afterfind sama beforesavenya..
sementara yg tak coba
public function afterFind(){
eval ('$atributes = array(' . $this->meta_field . ');');
foreach($atributes as $key=>$val){
if(isset($this->$key))
$this->$key = $val;
}
}
meta_field itu tipe hstorenya..
Share this topic:
Page 1 of 1

Help













