Example #1
0
 /**
  * @param Manager $dbManager
  * @param EntityAnalyzer $analyzer
  */
 public function __construct(Manager $dbManager, EntityAnalyzer $analyzer)
 {
     $this->dbManager = $dbManager;
     $this->analyzer = $analyzer;
     foreach ($this->analyzer->getParam('property') as $propertyData) {
         $name = ltrim($propertyData[1], '$');
         $this->attrsToFields[$name] = $propertyData[3] ?: $name;
         $this->attrs[$name] = array($propertyData[0], $propertyData[2] != '[]');
     }
     $this->repo = new Repo();
     $this->proxy = new Repo();
     $this->findRelationAttrs();
     $this->construct();
 }