public static function unserializes(array $attributes)
 {
     return array_map(function ($attribute) {
         return AttributeSerialize::unserialize($attribute);
     }, $attributes);
 }
 public function getAttributesByProductIdAndType($id)
 {
     //	dump($this->getAttributeDao()->getAttributesByCategoryId($id));
     return AttributeSerialize::unserializes($this->getProductAttributeDao()->getAttributesByProductIdAndType($id));
 }