Exemplo n.º 1
0
 /**
  * recupera meta informacao do valueObject informado
  *
  * @param stdClass $annon
  * @param string $dataSource
  * */
 public function meta(\stdClass $annon, $dataSource)
 {
     $config = PersistConfig::factory($dataSource, self::$persistConfig->toArray());
     $data = MetaAbstract::factory(Connect::factory($config))->data($this->safeToggle($annon, 'schema', NULL), $this->safeToggle($annon, 'entity', NULL));
     $this->merge($annon, $data);
 }
Exemplo n.º 2
0
 /**
  * @return MetaAbstract
  * */
 public function meta()
 {
     $dsName = $this->_bootstrap->config('app.persist.default');
     $config = $this->_bootstrap->config('app.persist')->toArray();
     $pConfig = PersistConfig::factory($dsName, $config);
     $persist = \br\gov\sial\core\persist\database\Connect::factory($pConfig);
     return MetaAbstract::factory($persist);
 }