Created
September 18, 2014 05:35
-
-
Save McGaiser/79ab717181d87bee7fbb to your computer and use it in GitHub Desktop.
A Role Record.
This file contains hidden or 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
| object(Cake\ORM\Query) { | |
| 'sql' => 'SELECT Roles.id AS `Roles__id`, Roles.parent_id AS `Roles__parent_id`, Roles.lft AS `Roles__lft`, Roles.rght AS `Roles__rght`, Roles.name AS `Roles__name`, Roles.description AS `Roles__description`, Roles.created AS `Roles__created`, Roles.updated AS `Roles__updated`, Parents.id AS `Parents__id`, Parents.parent_id AS `Parents__parent_id`, Parents.lft AS `Parents__lft`, Parents.rght AS `Parents__rght`, Parents.name AS `Parents__name`, Parents.description AS `Parents__description`, Parents.created AS `Parents__created`, Parents.updated AS `Parents__updated` FROM roles AS Roles LEFT JOIN roles Parents ON Parents.id = (Roles.parent_id)', | |
| 'params' => [], | |
| 'defaultTypes' => [ | |
| 'Roles.id' => 'integer', | |
| 'id' => 'integer', | |
| 'Roles.parent_id' => 'integer', | |
| 'parent_id' => 'integer', | |
| 'Roles.lft' => 'integer', | |
| 'lft' => 'integer', | |
| 'Roles.rght' => 'integer', | |
| 'rght' => 'integer', | |
| 'Roles.name' => 'string', | |
| 'name' => 'string', | |
| 'Roles.description' => 'text', | |
| 'description' => 'text', | |
| 'Roles.created' => 'datetime', | |
| 'created' => 'datetime', | |
| 'Roles.updated' => 'datetime', | |
| 'updated' => 'datetime' | |
| ], | |
| 'decorators' => (int) 0, | |
| 'executed' => false, | |
| 'hydrate' => true, | |
| 'buffered' => true, | |
| 'formatters' => (int) 0, | |
| 'mapReducers' => (int) 0, | |
| 'contain' => [ | |
| 'Parents' => [] | |
| ], | |
| 'extraOptions' => [], | |
| 'repository' => object(App\Model\Table\RolesTable) { | |
| 'table' => 'roles', | |
| 'alias' => 'Roles', | |
| 'entityClass' => 'App\Model\Entity\Role', | |
| 'associations' => [ | |
| (int) 0 => 'children', | |
| (int) 1 => 'parents', | |
| (int) 2 => 'assignments' | |
| ], | |
| 'behaviors' => [ | |
| (int) 0 => 'Timestamp', | |
| (int) 1 => 'Tree' | |
| ], | |
| 'defaultConnection' => 'default', | |
| 'connectionName' => 'default' | |
| } | |
| } | |
| Roles | |
| Add Role | |
| \src\Template\Roles\index.ctp (line 16) | |
| object(App\Model\Entity\Role) { | |
| 'new' => false, | |
| 'accessible' => [ | |
| '*' => true | |
| ], | |
| 'properties' => [ | |
| 'id' => (int) 4, | |
| 'parent_id' => (int) 2, | |
| 'lft' => (int) 6, | |
| 'rght' => (int) 7, | |
| 'name' => 'Assistant Storyteller', | |
| 'description' => 'They help a little', | |
| 'created' => object(Cake\Utility\Time) { | |
| 'time' => '2014-09-18T04:51:27+0000', | |
| 'timezone' => 'UTC', | |
| 'fixedNowTime' => false | |
| }, | |
| 'updated' => object(Cake\Utility\Time) { | |
| 'time' => '-0001-11-30T00:00:00+0000', | |
| 'timezone' => 'UTC', | |
| 'fixedNowTime' => false | |
| }, | |
| 'parent' => object(App\Model\Entity\Role) { | |
| 'new' => false, | |
| 'accessible' => [ | |
| '*' => true | |
| ], | |
| 'properties' => [ | |
| 'id' => (int) 2, | |
| 'parent_id' => null, | |
| 'lft' => (int) 3, | |
| 'rght' => (int) 8, | |
| 'name' => 'Storyteller', | |
| 'description' => 'This is the main Storyteller Role.', | |
| 'created' => object(Cake\Utility\Time) { | |
| 'time' => '2014-09-18T03:40:59+0000', | |
| 'timezone' => 'UTC', | |
| 'fixedNowTime' => false | |
| }, | |
| 'updated' => object(Cake\Utility\Time) { | |
| 'time' => '-0001-11-30T00:00:00+0000', | |
| 'timezone' => 'UTC', | |
| 'fixedNowTime' => false | |
| } | |
| ], | |
| 'dirty' => [], | |
| 'virtual' => [], | |
| 'errors' => [], | |
| 'repository' => 'Parents' | |
| } | |
| ], | |
| 'dirty' => [], | |
| 'virtual' => [], | |
| 'errors' => [], | |
| 'repository' => 'Roles' | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment