Пример #1
0
 /**
  * @param DB $db RDBMS to use
  * @param IQueryable $entity ORM-related entity representation
  */
 function __construct(DB $db, IQueryable $entity)
 {
     $this->db = $db;
     $this->entity = $entity;
     $this->map = $entity->getMap();
     $this->logicalSchema = $entity->getLogicalSchema();
     $this->physicalSchema = $entity->getPhysicalSchema();
     $this->identifier = $this->logicalSchema->getIdentifier();
     if ($this->identifier) {
         $this->identityMap = new OrmIdentityMap($this->logicalSchema);
     }
 }