Skip to content

Commit 9fa6a03

Browse files
committed
v1.1.12 Fixed the Validation::is_unique() method causing parameter errors.
1 parent 66245ca commit 9fa6a03

31 files changed

+47
-46
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.11
10+
* @version 1.1.12
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.11
10+
* @version 1.1.12
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

src/DB.php

Lines changed: 5 additions & 4 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.11
10+
* @version 1.1.12
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

@@ -114,7 +114,7 @@ public function __call($name, $arguments)
114114
$query = $this->getQueryBuilder()->readQuery();
115115
$this->getQueryBuilder()->reset();
116116
$this->getDataMapper()->persist($query, []);
117-
return $this->getDataMapper()->result();;
117+
return $this->getDataMapper()->result();
118118
}
119119
if(\method_exists($this->_queryBuilder, $name)){
120120
$res = $this->getQueryBuilder()->{$name}(...$arguments);
@@ -138,7 +138,8 @@ public function __call($name, $arguments)
138138

139139
public function with(): self
140140
{
141-
return clone $this;
141+
$with = clone $this;
142+
return $with;
142143
}
143144

144145
/**
@@ -267,7 +268,7 @@ public function create(array $fields)
267268
}
268269
$data[$i][$column] = $value;
269270
}
270-
if(empty($data)){
271+
if(empty($data[$i])){
271272
continue;
272273
}
273274
if($isCreatedField){

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.11
10+
* @version 1.1.12
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.11
10+
* @version 1.1.12
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.11
10+
* @version 1.1.12
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.11
10+
* @version 1.1.12
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.11
10+
* @version 1.1.12
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.11
10+
* @version 1.1.12
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.11
10+
* @version 1.1.12
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

0 commit comments

Comments
 (0)