Code Context ])->first();
if(count($idHijoContenido)){
$contenidoHijo = $contenidosTable->find('all', [
$id = '12'
$idHijo = '22'
$contenidosTable = object(Cake\ORM\Table) {
'registryAlias' => 'Contenidos',
'table' => 'contenidos',
'alias' => 'Contenidos',
'entityClass' => 'Cake\ORM\Entity',
'associations' => [],
'behaviors' => [],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
$contenido = object(Cake\ORM\Entity) {
'id' => (int) 12,
'fecha' => object(Cake\I18n\FrozenTime) {},
'fechahasta' => object(Cake\I18n\FrozenTime) {},
'orden' => (int) 1000,
'contenidostipo_id' => (int) 1,
'contenido_acoplado_id' => (int) 0,
'titulo' => 'Cabridas',
'copete' => '',
'cuerpo' => '<h4>Pueden ser Parabólicas, a dos aguas o rectas para techos de una caída.</h4>
',
'publicado' => null,
'publico' => null,
'protegido' => false,
'template' => (int) 1,
'telefono' => '',
'direccion' => '',
'url' => '',
'ubicacion' => '',
'estructura' => '',
'lateral' => '',
'cubierta' => '',
'medidas' => '',
'email' => '',
'creado' => object(Cake\I18n\FrozenTime) {},
'creado_usuario_id' => (int) 1,
'modificado' => object(Cake\I18n\FrozenTime) {},
'modificado_usuario_id' => (int) 1,
'eliminado' => null,
'eliminado_usuario_id' => (int) 0,
'hijos' => [
(int) 0 => object(Cake\ORM\Entity) {},
(int) 1 => object(Cake\ORM\Entity) {},
(int) 2 => object(Cake\ORM\Entity) {}
],
'[new]' => false,
'[accessible]' => [
'*' => true
],
'[dirty]' => [
'hijos' => true
],
'[original]' => [],
'[virtual]' => [],
'[hasErrors]' => false,
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Contenidos'
}
$ccTable = object(Cake\ORM\Table) {
'registryAlias' => 'ContenidosContenidos',
'table' => 'contenidos_contenidos',
'alias' => 'ContenidosContenidos',
'entityClass' => 'Cake\ORM\Entity',
'associations' => [],
'behaviors' => [],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
$multimediasTable = object(Cake\ORM\Table) {
'registryAlias' => 'Multimedias',
'table' => 'multimedias',
'alias' => 'Multimedias',
'entityClass' => 'Cake\ORM\Entity',
'associations' => [],
'behaviors' => [],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
$contenidosAux = []
$hijos = [
(int) 0 => object(Cake\ORM\Entity) {
'id' => (int) 210,
'contenido_id_1' => (int) 12,
'contenido_id_2' => (int) 24,
'cantidad' => (float) 0,
'multimedias' => [[maximum depth reached]],
'contenido' => object(Cake\ORM\Entity) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [
[maximum depth reached]
],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'ContenidosContenidos'
},
(int) 1 => object(Cake\ORM\Entity) {
'id' => (int) 212,
'contenido_id_1' => (int) 12,
'contenido_id_2' => (int) 22,
'cantidad' => (float) 0,
'multimedias' => [[maximum depth reached]],
'contenido' => object(Cake\ORM\Entity) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [
[maximum depth reached]
],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'ContenidosContenidos'
},
(int) 2 => object(Cake\ORM\Entity) {
'id' => (int) 214,
'contenido_id_1' => (int) 12,
'contenido_id_2' => (int) 20,
'cantidad' => (float) 0,
'multimedias' => [[maximum depth reached]],
'contenido' => object(Cake\ORM\Entity) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [
[maximum depth reached]
],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'ContenidosContenidos'
}
]
$contenidosAuxHijos = [
(int) 0 => object(Cake\ORM\Entity) {
'id' => (int) 210,
'contenido_id_1' => (int) 12,
'contenido_id_2' => (int) 24,
'cantidad' => (float) 0,
'multimedias' => [[maximum depth reached]],
'contenido' => object(Cake\ORM\Entity) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [
[maximum depth reached]
],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'ContenidosContenidos'
},
(int) 1 => object(Cake\ORM\Entity) {
'id' => (int) 212,
'contenido_id_1' => (int) 12,
'contenido_id_2' => (int) 22,
'cantidad' => (float) 0,
'multimedias' => [[maximum depth reached]],
'contenido' => object(Cake\ORM\Entity) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [
[maximum depth reached]
],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'ContenidosContenidos'
},
(int) 2 => object(Cake\ORM\Entity) {
'id' => (int) 214,
'contenido_id_1' => (int) 12,
'contenido_id_2' => (int) 20,
'cantidad' => (float) 0,
'multimedias' => [[maximum depth reached]],
'contenido' => object(Cake\ORM\Entity) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [
[maximum depth reached]
],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'ContenidosContenidos'
}
]
$hijo = object(Cake\ORM\Entity) {
'id' => (int) 214,
'contenido_id_1' => (int) 12,
'contenido_id_2' => (int) 20,
'cantidad' => (float) 0,
'multimedias' => [],
'contenido' => object(Cake\ORM\Entity) {},
'[new]' => false,
'[accessible]' => [
'*' => true
],
'[dirty]' => [
'multimedias' => true,
'contenido' => true
],
'[original]' => [],
'[virtual]' => [],
'[hasErrors]' => false,
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'ContenidosContenidos'
}
$idHijoContenido = object(Cake\ORM\Entity) {
'id' => (int) 236,
'contenido_id_1' => (int) 22,
'contenido_id_2' => (int) 46,
'cantidad' => (float) 0,
'[new]' => false,
'[accessible]' => [
'*' => true
],
'[dirty]' => [],
'[original]' => [],
'[virtual]' => [],
'[hasErrors]' => false,
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'ContenidosContenidos'
}
count - [internal], line ??
App\Controller\PagesController::detalleestructura() - APP/Controller/PagesController.php, line 188
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 610
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 119
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 168
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65