Skip to content

Commit 73ebe59

Browse files
committed
Fixed the error caused by the Validation::is_unique() method.
1 parent 396d94e commit 73ebe59

32 files changed

+40
-38
lines changed

src/Connection/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/Connection/ConnectionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/DB.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

@@ -136,10 +136,9 @@ public function __call($name, $arguments)
136136
throw new DatabaseException('The "' . $name . '" method does not exist.');
137137
}
138138

139-
public function with(): self
139+
public function newInstance(): self
140140
{
141-
$with = clone $this;
142-
return $with;
141+
return new self($this->configurations);
143142
}
144143

145144
/**
@@ -162,7 +161,8 @@ public function setSchema(string $schema): self
162161

163162
public function withSchema(string $schema): self
164163
{
165-
return $this->with()->setSchema($schema);
164+
$with = clone $this;
165+
return $with->setSchema($schema);
166166
}
167167

168168
/**
@@ -185,7 +185,8 @@ public function setSchemaID(string $schemaID): self
185185

186186
public function withSchemaID(string $schemaID): self
187187
{
188-
return $this->with()->setSchemaID($schemaID);
188+
$with = clone $this;
189+
return $with->setSchemaID($schemaID);
189190
}
190191

191192
public function isError(): bool

src/DataMapper/DataMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/DataMapper/DataMapperInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/Exceptions/DataMapperException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/Exceptions/DataMapperInvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/Exceptions/DatabaseConnectionException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/Exceptions/DatabaseException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.1.12
10+
* @version 1.1.13
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

0 commit comments

Comments
 (0)