Skip to content

Commit

Permalink
LazyLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
armenio committed Jul 22, 2021
1 parent 486efd9 commit 5ff2cff
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"zendframework/zend-paginator": "^2.7",
"cakephp/orm": "3.*",
"cakephp/cache": "3.*",
"cakephp/log": "3.*"
"cakephp/log": "3.*",
"jeremyharris/cakephp-lazyload": "2.*"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.5.3"
Expand Down
22 changes: 22 additions & 0 deletions src/ORM/Entity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/**
* @author Rafael Armenio <rafael.armenio@gmail.com>
*
* @link http://github.com/armenio
*/

namespace Armenio\Cake\ORM;

use Cake\ORM\Entity as VendorEntity;
use JeremyHarris\LazyLoad\ORM\LazyLoadEntityTrait;

/**
* Class Entity
*
* @package Armenio\Cake\ORM
*/
class Entity extends VendorEntity
{
use LazyLoadEntityTrait;
}

0 comments on commit 5ff2cff

Please sign in to comment.