Commit 3a591f0c authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

REFACTOR(mapping): reduce the name of the package + typo

"RelationshipsTaxonomysSofwares"
become "TaxonomysSoftwares"
parent 6f509b9b
Pipeline #8522 failed with stage
in 2 minutes and 19 seconds
......@@ -18,4 +18,5 @@ INSERT INTO public.taxonomys (id, parent_id, title_i18n_en, title_i18n_fr, descr
INSERT INTO public.taxonomys (id, parent_id, title_i18n_en, title_i18n_fr, description_i18n_en, description_i18n_fr, created, modified) VALUES (6, 2, 'DMS - Document Management System', 'GED - Gestion Electronique de Document', null, null, '2020-01-31 15:12:58.000000', '2020-01-31 15:12:58.000000');
INSERT INTO public.taxonomys (id, parent_id, title_i18n_en, title_i18n_fr, description_i18n_en, description_i18n_fr, created, modified) VALUES (14, 1, 'Healthcare / Social', 'Santé / Social', null, null, '2020-01-31 15:12:58.000000', '2020-01-31 15:12:58.000000');
INSERT INTO public.taxonomys (id, parent_id, title_i18n_en, title_i18n_fr, description_i18n_en, description_i18n_fr, created, modified) VALUES (5, 2, 'GIS', 'SIG', null, null, '2020-01-31 15:12:58.000000', '2020-01-31 15:12:58.000000');
INSERT INTO public.taxonomys (id, parent_id, title_i18n_en, title_i18n_fr, description_i18n_en, description_i18n_fr, created, modified) VALUES (7, 2, 'Archiving', 'SAE (archivage)', null, null, '2020-01-31 15:12:58.000000', '2020-01-31 15:12:58.000000');
\ No newline at end of file
INSERT INTO public.taxonomys (id, parent_id, title_i18n_en, title_i18n_fr, description_i18n_en, description_i18n_fr, created, modified) VALUES (7, 2, 'Archiving', 'SAE (archivage)', null, null, '2020-01-31 15:12:58.000000', '2020-01-31 15:12:58.000000');
ALTER SEQUENCE taxonomys_id_seq RESTART WITH 105;
<?php
use Migrations\AbstractMigration;
class CreateRelationshipsTaxonomysSofwares extends AbstractMigration
class CreateTaxonomysSoftwares extends AbstractMigration
{
/**
* Change Method.
......@@ -13,7 +13,7 @@ class CreateRelationshipsTaxonomysSofwares extends AbstractMigration
public function change()
{
$table = $this->table('relationships_taxonomys_sofwares');
$table = $this->table('taxonomys_softwares');
// --------------------------------------
$table->addColumn('taxonomy_id', 'integer', [
'default' => null,
......
......@@ -2,14 +2,14 @@
namespace App\Controller\Api\V1;
use App\Controller\AppController;
use App\Model\Table\RelationshipsTaxonomysSofwaresTable;
use App\Model\Table\TaxonomysSoftwaresTable;
/**
* RelationshipsTaxonomysSofwares Controller
* TaxonomysSoftwares Controller
*
* @property RelationshipsTaxonomysSofwaresTable $RelationshipsTaxonomysSofwares
* @property TaxonomysSoftwaresTable $TaxonomysSoftwares
*/
class RelationshipsTaxonomysSofwaresController extends AppController
class TaxonomysSoftwaresController extends AppController
{
/**
......@@ -22,27 +22,27 @@ class RelationshipsTaxonomysSofwaresController extends AppController
$this->paginate = [
'contain' => ['Taxonomys', 'Softwares', 'Users']
];
$relationshipsTaxonomysSofwares = $this->paginate($this->RelationshipsTaxonomysSofwares);
$taxonomysSoftwares = $this->paginate($this->TaxonomysSoftwares);
$this->set(compact('relationshipsTaxonomysSofwares'));
$this->set('_serialize', ['relationshipsTaxonomysSofwares']);
$this->set(compact('taxonomysSoftwares'));
$this->set('_serialize', ['taxonomysSoftwares']);
}
/**
* View method
*
* @param string|null $id Relationships Taxonomys Sofware id.
* @param string|null $id Taxonomys Software id.
* @return \Cake\Network\Response|null
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
*/
public function view($id = null)
{
$relationshipsTaxonomysSofware = $this->RelationshipsTaxonomysSofwares->get($id, [
$taxonomysSoftware = $this->TaxonomysSoftwares->get($id, [
'contain' => ['Taxonomys', 'Softwares', 'Users']
]);
$this->set('relationshipsTaxonomysSofware', $relationshipsTaxonomysSofware);
$this->set('_serialize', ['relationshipsTaxonomysSofware']);
$this->set('taxonomysSoftware', $taxonomysSoftware);
$this->set('_serialize', ['taxonomysSoftware']);
}
/**
......@@ -52,66 +52,66 @@ class RelationshipsTaxonomysSofwaresController extends AppController
*/
public function add()
{
$relationshipsTaxonomysSofware = $this->RelationshipsTaxonomysSofwares->newEntity();
$taxonomysSoftware = $this->TaxonomysSoftwares->newEntity();
if ($this->request->is('post')) {
$relationshipsTaxonomysSofware = $this->RelationshipsTaxonomysSofwares->patchEntity($relationshipsTaxonomysSofware, $this->request->data);
if ($this->RelationshipsTaxonomysSofwares->save($relationshipsTaxonomysSofware)) {
$this->Flash->success(__('The relationships taxonomys sofware has been saved.'));
$taxonomysSoftware = $this->TaxonomysSoftwares->patchEntity($taxonomysSoftware, $this->request->data);
if ($this->TaxonomysSoftwares->save($taxonomysSoftware)) {
$this->Flash->success(__('The taxonomys software has been saved.'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('The relationships taxonomys sofware could not be saved. Please, try again.'));
$this->Flash->error(__('The taxonomys software could not be saved. Please, try again.'));
}
$taxonomys = $this->RelationshipsTaxonomysSofwares->Taxonomys->find('list', ['limit' => 200]);
$softwares = $this->RelationshipsTaxonomysSofwares->Softwares->find('list', ['limit' => 200]);
$users = $this->RelationshipsTaxonomysSofwares->Users->find('list', ['limit' => 200]);
$this->set(compact('relationshipsTaxonomysSofware', 'taxonomys', 'softwares', 'users'));
$this->set('_serialize', ['relationshipsTaxonomysSofware']);
$taxonomys = $this->TaxonomysSoftwares->Taxonomys->find('list', ['limit' => 200]);
$softwares = $this->TaxonomysSoftwares->Softwares->find('list', ['limit' => 200]);
$users = $this->TaxonomysSoftwares->Users->find('list', ['limit' => 200]);
$this->set(compact('taxonomysSoftware', 'taxonomys', 'softwares', 'users'));
$this->set('_serialize', ['taxonomysSoftware']);
}
/**
* Edit method
*
* @param string|null $id Relationships Taxonomys Sofware id.
* @param string|null $id Taxonomys Software id.
* @return \Cake\Network\Response|null Redirects on successful edit, renders view otherwise.
* @throws \Cake\Network\Exception\NotFoundException When record not found.
*/
public function edit($id = null)
{
$relationshipsTaxonomysSofware = $this->RelationshipsTaxonomysSofwares->get($id, [
$taxonomysSoftware = $this->TaxonomysSoftwares->get($id, [
'contain' => []
]);
if ($this->request->is(['patch', 'post', 'put'])) {
$relationshipsTaxonomysSofware = $this->RelationshipsTaxonomysSofwares->patchEntity($relationshipsTaxonomysSofware, $this->request->data);
if ($this->RelationshipsTaxonomysSofwares->save($relationshipsTaxonomysSofware)) {
$this->Flash->success(__('The relationships taxonomys sofware has been saved.'));
$taxonomysSoftware = $this->TaxonomysSoftwares->patchEntity($taxonomysSoftware, $this->request->data);
if ($this->TaxonomysSoftwares->save($taxonomysSoftware)) {
$this->Flash->success(__('The taxonomys software has been saved.'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('The relationships taxonomys sofware could not be saved. Please, try again.'));
$this->Flash->error(__('The taxonomys software could not be saved. Please, try again.'));
}
$taxonomys = $this->RelationshipsTaxonomysSofwares->Taxonomys->find('list', ['limit' => 200]);
$softwares = $this->RelationshipsTaxonomysSofwares->Softwares->find('list', ['limit' => 200]);
$users = $this->RelationshipsTaxonomysSofwares->Users->find('list', ['limit' => 200]);
$this->set(compact('relationshipsTaxonomysSofware', 'taxonomys', 'softwares', 'users'));
$this->set('_serialize', ['relationshipsTaxonomysSofware']);
$taxonomys = $this->TaxonomysSoftwares->Taxonomys->find('list', ['limit' => 200]);
$softwares = $this->TaxonomysSoftwares->Softwares->find('list', ['limit' => 200]);
$users = $this->TaxonomysSoftwares->Users->find('list', ['limit' => 200]);
$this->set(compact('taxonomysSoftware', 'taxonomys', 'softwares', 'users'));
$this->set('_serialize', ['taxonomysSoftware']);
}
/**
* Delete method
*
* @param string|null $id Relationships Taxonomys Sofware id.
* @param string|null $id Taxonomys Software id.
* @return \Cake\Network\Response|null Redirects to index.
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
*/
public function delete($id = null)
{
$this->request->allowMethod(['post', 'delete']);
$relationshipsTaxonomysSofware = $this->RelationshipsTaxonomysSofwares->get($id);
if ($this->RelationshipsTaxonomysSofwares->delete($relationshipsTaxonomysSofware)) {
$this->Flash->success(__('The relationships taxonomys sofware has been deleted.'));
$taxonomysSoftware = $this->TaxonomysSoftwares->get($id);
if ($this->TaxonomysSoftwares->delete($taxonomysSoftware)) {
$this->Flash->success(__('The taxonomys software has been deleted.'));
} else {
$this->Flash->error(__('The relationships taxonomys sofware could not be deleted. Please, try again.'));
$this->Flash->error(__('The taxonomys software could not be deleted. Please, try again.'));
}
return $this->redirect(['action' => 'index']);
......
......@@ -72,7 +72,7 @@ class AppTaxonomyController extends ScopeTaxonomyController
final public function view($id = null)
{
$taxonomy = $this->Taxonomys->get($id, [
'contain' => ['ParentTaxonomys', 'RelationshipsTaxonomysSofwares', 'ChildTaxonomys']
'contain' => ['ParentTaxonomys', 'TaxonomysSoftwares', 'ChildTaxonomys']
]);
$this->set('taxonomy', $taxonomy);
......
......@@ -17,7 +17,7 @@ use Cake\ORM\Entity;
* @property \Cake\I18n\Time $modified
*
* @property \App\Model\Entity\ParentTaxonomy $parent_taxonomy
* @property \App\Model\Entity\RelationshipsTaxonomysSofware[] $relationships_taxonomys_sofwares
* @property \App\Model\Entity\TaxonomysSoftware[] $taxonomys_softwares
* @property \App\Model\Entity\ChildTaxonomy[] $child_taxonomys
*/
class Taxonomy extends Entity
......
......@@ -5,7 +5,7 @@ use Cake\I18n\Time;
use Cake\ORM\Entity;
/**
* RelationshipsTaxonomysSofware Entity
* TaxonomysSoftware Entity
*
* @property int $id
* @property int $taxonomy_id
......@@ -18,7 +18,7 @@ use Cake\ORM\Entity;
* @property \App\Model\Entity\Software $software
* @property \App\Model\Entity\User $user
*/
class RelationshipsTaxonomysSofware extends Entity
class TaxonomysSoftware extends Entity
{
/**
......
<?php
namespace App\Model\Table;
use App\Model\Entity\RelationshipsTaxonomysSofware;
use App\Model\Entity\TaxonomysSoftware;
use Cake\Datasource\EntityInterface;
use Cake\ORM\Association\BelongsTo;
use Cake\ORM\Behavior\TimestampBehavior;
......@@ -11,23 +11,23 @@ use Cake\ORM\Table;
use Cake\Validation\Validator;
/**
* RelationshipsTaxonomysSofwares Model
* TaxonomysSoftwares Model
*
* @property BelongsTo $Taxonomys
* @property BelongsTo $Softwares
* @property BelongsTo $Users
*
* @method RelationshipsTaxonomysSofware get($primaryKey, $options = [])
* @method RelationshipsTaxonomysSofware newEntity($data = null, array $options = [])
* @method RelationshipsTaxonomysSofware[] newEntities(array $data, array $options = [])
* @method RelationshipsTaxonomysSofware|bool save(EntityInterface $entity, $options = [])
* @method RelationshipsTaxonomysSofware patchEntity(EntityInterface $entity, array $data, array $options = [])
* @method RelationshipsTaxonomysSofware[] patchEntities($entities, array $data, array $options = [])
* @method RelationshipsTaxonomysSofware findOrCreate($search, callable $callback = null, $options = [])
* @method TaxonomysSoftware get($primaryKey, $options = [])
* @method TaxonomysSoftware newEntity($data = null, array $options = [])
* @method TaxonomysSoftware[] newEntities(array $data, array $options = [])
* @method TaxonomysSoftware|bool save(EntityInterface $entity, $options = [])
* @method TaxonomysSoftware patchEntity(EntityInterface $entity, array $data, array $options = [])
* @method TaxonomysSoftware[] patchEntities($entities, array $data, array $options = [])
* @method TaxonomysSoftware findOrCreate($search, callable $callback = null, $options = [])
*
* @mixin TimestampBehavior
*/
class RelationshipsTaxonomysSofwaresTable extends Table
class TaxonomysSoftwaresTable extends Table
{
/**
......@@ -40,7 +40,7 @@ class RelationshipsTaxonomysSofwaresTable extends Table
{
parent::initialize($config);
$this->table('relationships_taxonomys_sofwares');
$this->table('taxonomys_softwares');
$this->displayField('id');
$this->primaryKey('id');
......
......@@ -15,7 +15,7 @@ use Cake\Validation\Validator;
* Taxonomys Model
*
* @property BelongsTo $ParentTaxonomys
* @property HasMany $RelationshipsTaxonomysSofwares
* @property HasMany $TaxonomysSoftwares
* @property HasMany $ChildTaxonomys
*
* @method Taxonomy get($primaryKey, $options = [])
......@@ -51,7 +51,7 @@ class TaxonomysTable extends Table
'className' => 'Taxonomys',
'foreignKey' => 'parent_id'
]);
$this->hasMany('RelationshipsTaxonomysSofwares', [
$this->hasMany('TaxonomysSoftwares', [
'foreignKey' => 'taxonomy_id'
]);
$this->hasMany('ChildTaxonomys', [
......
......@@ -15,8 +15,8 @@
<li><?= $this->Html->link(__('List Taxonomys'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Parent Taxonomys'), ['controller' => 'Taxonomys', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Parent Taxonomy'), ['controller' => 'Taxonomys', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Relationships Taxonomys Sofwares'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Relationships Taxonomys Sofware'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Taxonomys Softwares'), ['controller' => 'TaxonomysSoftwares', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Taxonomys Software'), ['controller' => 'TaxonomysSoftwares', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="taxonomys form large-9 medium-8 columns content">
......
......@@ -21,8 +21,8 @@
<li><?= $this->Html->link(__('List Taxonomys'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Parent Taxonomys'), ['controller' => 'Taxonomys', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Parent Taxonomy'), ['controller' => 'Taxonomys', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Relationships Taxonomys Sofwares'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Relationships Taxonomys Sofware'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Taxonomys Softwares'), ['controller' => 'TaxonomysSoftwares', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Taxonomys Software'), ['controller' => 'TaxonomysSoftwares', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="taxonomys form large-9 medium-8 columns content">
......
......@@ -13,8 +13,8 @@
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New Taxonomy'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Relationships Taxonomys Sofwares'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Relationships Taxonomys Sofware'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Taxonomys Softwares'), ['controller' => 'TaxonomysSoftwares', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Taxonomys Software'), ['controller' => 'TaxonomysSoftwares', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="taxonomys index large-9 medium-8 columns content">
......
......@@ -18,8 +18,8 @@
<li><?= $this->Html->link(__('New Taxonomy'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Parent Taxonomys'), ['controller' => 'Taxonomys', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Parent Taxonomy'), ['controller' => 'Taxonomys', 'action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Relationships Taxonomys Sofwares'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Relationships Taxonomys Sofware'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Taxonomys Softwares'), ['controller' => 'TaxonomysSoftwares', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Taxonomys Software'), ['controller' => 'TaxonomysSoftwares', 'action' => 'add']) ?> </li>
</ul>
</nav>
<div class="taxonomys view large-9 medium-8 columns content">
......@@ -59,8 +59,8 @@
<?= $this->Text->autoParagraph(h($taxonomy->description_i18n_fr)); ?>
</div>
<div class="related">
<h4><?= __('Related Relationships Taxonomys Sofwares') ?></h4>
<?php if (!empty($taxonomy->relationships_taxonomys_sofwares)): ?>
<h4><?= __('Related Taxonomys Softwares') ?></h4>
<?php if (!empty($taxonomy->taxonomys_softwares)): ?>
<table cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><?= __('Id') ?></th>
......@@ -71,18 +71,18 @@
<th scope="col"><?= __('Modified') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
<?php foreach ($taxonomy->relationships_taxonomys_sofwares as $relationshipsTaxonomysSofwares): ?>
<?php foreach ($taxonomy->taxonomys_softwares as $taxonomysSoftwares): ?>
<tr>
<td><?= h($relationshipsTaxonomysSofwares->id) ?></td>
<td><?= h($relationshipsTaxonomysSofwares->taxonomy_id) ?></td>
<td><?= h($relationshipsTaxonomysSofwares->software_id) ?></td>
<td><?= h($relationshipsTaxonomysSofwares->user_id) ?></td>
<td><?= h($relationshipsTaxonomysSofwares->created) ?></td>
<td><?= h($relationshipsTaxonomysSofwares->modified) ?></td>
<td><?= h($taxonomysSoftwares->id) ?></td>
<td><?= h($taxonomysSoftwares->taxonomy_id) ?></td>
<td><?= h($taxonomysSoftwares->software_id) ?></td>
<td><?= h($taxonomysSoftwares->user_id) ?></td>
<td><?= h($taxonomysSoftwares->created) ?></td>
<td><?= h($taxonomysSoftwares->modified) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'view', $relationshipsTaxonomysSofwares->id]) ?>
<?= $this->Html->link(__('Edit'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'edit', $relationshipsTaxonomysSofwares->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['controller' => 'RelationshipsTaxonomysSofwares', 'action' => 'delete', $relationshipsTaxonomysSofwares->id], ['confirm' => __('Are you sure you want to delete # {0}?', $relationshipsTaxonomysSofwares->id)]) ?>
<?= $this->Html->link(__('View'), ['controller' => 'TaxonomysSoftwares', 'action' => 'view', $taxonomysSoftwares->id]) ?>
<?= $this->Html->link(__('Edit'), ['controller' => 'TaxonomysSoftwares', 'action' => 'edit', $taxonomysSoftwares->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['controller' => 'TaxonomysSoftwares', 'action' => 'delete', $taxonomysSoftwares->id], ['confirm' => __('Are you sure you want to delete # {0}?', $taxonomysSoftwares->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
......
......@@ -6,7 +6,7 @@
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Relationships Taxonomys Sofwares'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Taxonomys Softwares'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Taxonomys'), ['controller' => 'Taxonomys', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Taxonomy'), ['controller' => 'Taxonomys', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Softwares'), ['controller' => 'Softwares', 'action' => 'index']) ?></li>
......@@ -15,10 +15,10 @@
<li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="relationshipsTaxonomysSofwares form large-9 medium-8 columns content">
<?= $this->Form->create($relationshipsTaxonomysSofware) ?>
<div class="taxonomysSoftwares form large-9 medium-8 columns content">
<?= $this->Form->create($taxonomysSoftware) ?>
<fieldset>
<legend><?= __('Add Relationships Taxonomys Sofware') ?></legend>
<legend><?= __('Add Taxonomys Software') ?></legend>
<?php
echo $this->Form->input('taxonomy_id', ['options' => $taxonomys]);
echo $this->Form->input('software_id', ['options' => $softwares]);
......
......@@ -8,11 +8,11 @@
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $relationshipsTaxonomysSofware->id],
['confirm' => __('Are you sure you want to delete # {0}?', $relationshipsTaxonomysSofware->id)]
['action' => 'delete', $taxonomysSoftware->id],
['confirm' => __('Are you sure you want to delete # {0}?', $taxonomysSoftware->id)]
)
?></li>
<li><?= $this->Html->link(__('List Relationships Taxonomys Sofwares'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Taxonomys Softwares'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Taxonomys'), ['controller' => 'Taxonomys', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Taxonomy'), ['controller' => 'Taxonomys', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Softwares'), ['controller' => 'Softwares', 'action' => 'index']) ?></li>
......@@ -21,10 +21,10 @@
<li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="relationshipsTaxonomysSofwares form large-9 medium-8 columns content">
<?= $this->Form->create($relationshipsTaxonomysSofware) ?>
<div class="taxonomysSoftwares form large-9 medium-8 columns content">
<?= $this->Form->create($taxonomysSoftware) ?>
<fieldset>
<legend><?= __('Edit Relationships Taxonomys Sofware') ?></legend>
<legend><?= __('Edit Taxonomys Software') ?></legend>
<?php
echo $this->Form->input('taxonomy_id', ['options' => $taxonomys]);
echo $this->Form->input('software_id', ['options' => $softwares]);
......
......@@ -6,7 +6,7 @@
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New Relationships Taxonomys Sofware'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('New Taxonomys Software'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Taxonomys'), ['controller' => 'Taxonomys', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Taxonomy'), ['controller' => 'Taxonomys', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Softwares'), ['controller' => 'Softwares', 'action' => 'index']) ?></li>
......@@ -15,8 +15,8 @@
<li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="relationshipsTaxonomysSofwares index large-9 medium-8 columns content">
<h3><?= __('Relationships Taxonomys Sofwares') ?></h3>
<div class="taxonomysSoftwares index large-9 medium-8 columns content">
<h3><?= __('Taxonomys Softwares') ?></h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
......@@ -30,18 +30,18 @@
</tr>
</thead>
<tbody>
<?php foreach ($relationshipsTaxonomysSofwares as $relationshipsTaxonomysSofware): ?>
<?php foreach ($taxonomysSoftwares as $taxonomysSoftware): ?>
<tr>
<td><?= $this->Number->format($relationshipsTaxonomysSofware->id) ?></td>
<td><?= $relationshipsTaxonomysSofware->has('taxonomy') ? $this->Html->link($relationshipsTaxonomysSofware->taxonomy->id, ['controller' => 'Taxonomys', 'action' => 'view', $relationshipsTaxonomysSofware->taxonomy->id]) : '' ?></td>
<td><?= $relationshipsTaxonomysSofware->has('software') ? $this->Html->link($relationshipsTaxonomysSofware->software->softwarename, ['controller' => 'Softwares', 'action' => 'view', $relationshipsTaxonomysSofware->software->id]) : '' ?></td>
<td><?= $relationshipsTaxonomysSofware->has('user') ? $this->Html->link($relationshipsTaxonomysSofware->user->username, ['controller' => 'Users', 'action' => 'view', $relationshipsTaxonomysSofware->user->id]) : '' ?></td>
<td><?= h($relationshipsTaxonomysSofware->created) ?></td>
<td><?= h($relationshipsTaxonomysSofware->modified) ?></td>
<td><?= $this->Number->format($taxonomysSoftware->id) ?></td>
<td><?= $taxonomysSoftware->has('taxonomy') ? $this->Html->link($taxonomysSoftware->taxonomy->id, ['controller' => 'Taxonomys', 'action' => 'view', $taxonomysSoftware->taxonomy->id]) : '' ?></td>
<td><?= $taxonomysSoftware->has('software') ? $this->Html->link($taxonomysSoftware->software->softwarename, ['controller' => 'Softwares', 'action' => 'view', $taxonomysSoftware->software->id]) : '' ?></td>
<td><?= $taxonomysSoftware->has('user') ? $this->Html->link($taxonomysSoftware->user->username, ['controller' => 'Users', 'action' => 'view', $taxonomysSoftware->user->id]) : '' ?></td>
<td><?= h($taxonomysSoftware->created) ?></td>
<td><?= h($taxonomysSoftware->modified) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $relationshipsTaxonomysSofware->id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $relationshipsTaxonomysSofware->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $relationshipsTaxonomysSofware->id], ['confirm' => __('Are you sure you want to delete # {0}?', $relationshipsTaxonomysSofware->id)]) ?>
<?= $this->Html->link(__('View'), ['action' => 'view', $taxonomysSoftware->id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $taxonomysSoftware->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $taxonomysSoftware->id], ['confirm' => __('Are you sure you want to delete # {0}?', $taxonomysSoftware->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
......
......@@ -6,10 +6,10 @@
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit Relationships Taxonomys Sofware'), ['action' => 'edit', $relationshipsTaxonomysSofware->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete Relationships Taxonomys Sofware'), ['action' => 'delete', $relationshipsTaxonomysSofware->id], ['confirm' => __('Are you sure you want to delete # {0}?', $relationshipsTaxonomysSofware->id)]) ?> </li>
<li><?= $this->Html->link(__('List Relationships Taxonomys Sofwares'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Relationships Taxonomys Sofware'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('Edit Taxonomys Software'), ['action' => 'edit', $taxonomysSoftware->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete Taxonomys Software'), ['action' => 'delete', $taxonomysSoftware->id], ['confirm' => __('Are you sure you want to delete # {0}?', $taxonomysSoftware->id)]) ?> </li>
<li><?= $this->Html->link(__('List Taxonomys Softwares'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Taxonomys Software'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Taxonomys'), ['controller' => 'Taxonomys', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Taxonomy'), ['controller' => 'Taxonomys', 'action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Softwares'), ['controller' => 'Softwares', 'action' => 'index']) ?> </li>
......@@ -18,32 +18,32 @@
<li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?> </li>
</ul>
</nav>
<div class="relationshipsTaxonomysSofwares view large-9 medium-8 columns content">
<h3><?= h($relationshipsTaxonomysSofware->id) ?></h3>
<div class="taxonomysSoftwares view large-9 medium-8 columns content">
<h3><?= h($taxonomysSoftware->id) ?></h3>
<table class="vertical-table">
<tr>
<th scope="row"><?= __('Taxonomy') ?></th>
<td><?= $relationshipsTaxonomysSofware->has('taxonomy') ? $this->Html->link($relationshipsTaxonomysSofware->taxonomy->id, ['controller' => 'Taxonomys', 'action' => 'view', $relationshipsTaxonomysSofware->taxonomy->id]) : '' ?></td>
<td><?= $taxonomysSoftware->has('taxonomy') ? $this->Html->link($taxonomysSoftware->taxonomy->id, ['controller' => 'Taxonomys', 'action' => 'view', $taxonomysSoftware->taxonomy->id]) : '' ?></td>
</tr>
<tr>
<th scope="row"><?= __('Software') ?></th>
<td><?= $relationshipsTaxonomysSofware->has('software') ? $this->Html->link($relationshipsTaxonomysSofware->software->softwarename, ['controller' => 'Softwares', 'action' => 'view', $relationshipsTaxonomysSofware->software->id]) : '' ?></td>
<td><?= $taxonomysSoftware->has('software') ? $this->Html->link($taxonomysSoftware->software->softwarename, ['controller' => 'Softwares', 'action' => 'view', $taxonomysSoftware->software->id]) : '' ?></td>
</tr>
<tr>
<th scope="row"><?= __('User') ?></th>
<td><?= $relationshipsTaxonomysSofware->has('user') ? $this->Html->link($relationshipsTaxonomysSofware->user->username, ['controller' => 'Users', 'action' => 'view', $relationshipsTaxonomysSofware->user->id]) : '' ?></td>
<td><?= $taxonomysSoftware->has('user') ? $this->Html->link($taxonomysSoftware->user->username, ['controller' => 'Users', 'action' => 'view', $taxonomysSoftware->user->id]) : '' ?></td>
</tr>
<tr>
<th scope="row"><?= __('Id') ?></th>
<td><?= $this->Number->format($relationshipsTaxonomysSofware->id) ?></td>
<td><?= $this->Number->format($taxonomysSoftware->id) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Created') ?></th>
<td><?= h($relationshipsTaxonomysSofware->created) ?></td>
<td><?= h($taxonomysSoftware->created) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Modified') ?></th>
<td><?= h($relationshipsTaxonomysSofware->modified) ?></td>
<td><?= h($taxonomysSoftware->modified) ?></td>
</tr>
</table>
</div>
......@@ -4,10 +4,10 @@ namespace App\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* RelationshipsTaxonomysSofwaresFixture
* TaxonomysSoftwaresFixture
*
*/
class RelationshipsTaxonomysSofwaresFixture extends TestFixture
class TaxonomysSoftwaresFixture extends TestFixture
{
/**
......@@ -25,9 +25,9 @@ class RelationshipsTaxonomysSofwaresFixture extends TestFixture
'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],