We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30bcbf3 commit 50811c1Copy full SHA for 50811c1
src/MySimpleORM/Mapper/ObjectMapping.php
@@ -30,10 +30,8 @@ public function __construct($o)
30
$this->ClassName = $classPathArray[sizeof($classPathArray) - 1];
31
$this->Database = new Database();
32
$this->Object = $o;
33
- if ($this->Database->connect()) {
34
- $this->PrimaryKey = $this->Database->getKeys($this->ClassName, "primary");
35
- $this->ForeignKeys = $this->Database->getKeys($this->ClassName, "foreign");
36
- }
+ $this->PrimaryKey = $this->Database->getKeys($this->ClassName, "primary");
+ $this->ForeignKeys = $this->Database->getKeys($this->ClassName, "foreign");
37
}
38
39
public function __destruct()
0 commit comments