-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from niden/fixes/issue-14783
[issue] - Adjustments to the test; trying to reproduce #14783
- Loading branch information
Showing
5 changed files
with
142 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <team@phalcon.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Test\Models; | ||
|
||
use Phalcon\Mvc\Model; | ||
|
||
/** | ||
* Class CustomersKeepSnapshots | ||
* | ||
* @property int $cst_id; | ||
* @property int $cst_status_flag; | ||
* @property string $cst_name_last; | ||
* @property string $cst_name_first; | ||
*/ | ||
class CustomersKeepSnapshots extends Model | ||
{ | ||
public $cst_id; | ||
public $cst_status_flag; | ||
public $cst_name_last; | ||
public $cst_name_first; | ||
|
||
public function initialize() | ||
{ | ||
$this->keepSnapshots(true); | ||
$this->setSource('co_customers'); | ||
|
||
$this->belongsTo( | ||
'cst_id', | ||
__NAMESPACE__ . 'InvoicesKeepSnapshots', | ||
'inv_cst_id', | ||
[ | ||
'alias' => 'invoices', | ||
'reusable' => true, | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <team@phalcon.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Test\Models; | ||
|
||
/** | ||
* Class InvoicesMap | ||
* | ||
* @property int $inv_id | ||
* @property int $inv_cst_id | ||
* @property int $inv_status_flag | ||
* @property string $inv_title | ||
* @property float $inv_total | ||
* @property string $inv_created_at | ||
*/ | ||
class InvoicesKeepSnapshots extends Invoices | ||
{ | ||
public function initialize() | ||
{ | ||
$this->setSource('co_invoices'); | ||
$this->keepSnapshots(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters