Skip to content

Commit 0f80cba

Browse files
author
Stefano Mtangoo
committed
Fix: some files were not saved before previous commit
1 parent 99c9a07 commit 0f80cba

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: Behaviors/GeometryBehavior.php

+3
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ public function afterSave()
149149
*/
150150
public function afterFind()
151151
{
152+
if (empty($this->owner->{$this->attribute})) {
153+
return parent::afterFind();
154+
}
152155

153156
if (!is_object(json_decode($this->owner->{$this->attribute}))) {
154157

Diff for: Behaviors/StBufferBehavior.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use yii\base\Behavior;
66
use yii\db\ActiveRecord;
7-
use Yii2\Extension\Postgis\components\StBuffer;
7+
use Yii2\Extension\Postgis\Components\StBuffer;
88

99
/**
1010
* Class StBufferBehavior

Diff for: Db/PostgisQueryTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Yii2\Extension\Postgis\db;
3+
namespace Yii2\Extension\Postgis\Db;
44

55
use Yii2\Extension\Postgis\Behaviors\GeometryBehavior;
66
use yii\helpers\ArrayHelper;
@@ -12,7 +12,7 @@
1212
* @property-read string tableName table name of AR model
1313
* @property-read yii\db\ColumnSchema[] tableColumns table columns of AR model
1414
* @property-read array tableColumnsNames table columns names of AR model
15-
* @package Yii2\Extension\Postgis\db
15+
* @package Yii2\Extension\Postgis\Db
1616
* @author Chernyavsky Denis <[email protected]>
1717
*/
1818
trait PostgisQueryTrait

0 commit comments

Comments
 (0)