Esempio n. 1
0
 public static function init()
 {
     parent::init();
     self::addExternalField('meta', 'doc_meta', ['doc_id' => true, 'doc_type' => function (Doc $doc) {
         return $doc->type;
     }]);
 }