Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SCHULER_VISENTINI_KBIDA_TARDIEU_BDD_Applications_S4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SCHULER Killian
SCHULER_VISENTINI_KBIDA_TARDIEU_BDD_Applications_S4
Commits
46cf687a
Commit
46cf687a
authored
Mar 03, 2020
by
Kbida Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modèles pour les requêtes
parent
42c877e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
0 deletions
+45
-0
tp1/src/model/company.php
tp1/src/model/company.php
+15
-0
tp1/src/model/game.php
tp1/src/model/game.php
+15
-0
tp1/src/model/platform.php
tp1/src/model/platform.php
+15
-0
No files found.
tp1/src/model/company.php
0 → 100644
View file @
46cf687a
<?php
namespace
bdd\models
;
class
Company
extends
\Illuminate\Database\Eloquent\Model
{
protected
$table
=
'company'
;
protected
$primaryKey
=
'id'
;
public
$timestamps
=
false
;
public
function
platform
(){
return
$this
->
belongsTo
(
'bdd\models\company'
,
'id'
);
}
}
\ No newline at end of file
tp1/src/model/game.php
0 → 100644
View file @
46cf687a
<?php
namespace
bdd\models
;
class
Game
extends
\Illuminate\Database\Eloquent\Model
{
protected
$table
=
'game'
;
protected
$primaryKey
=
'id'
;
public
$timestamps
=
false
;
public
function
platform
(){
return
$this
->
belongsTo
(
'bdd\models\game'
,
'id'
);
}
}
\ No newline at end of file
tp1/src/model/platform.php
0 → 100644
View file @
46cf687a
<?php
namespace
bdd\models
;
class
Platform
extends
\Illuminate\Database\Eloquent\Model
{
protected
$table
=
'platform'
;
protected
$primaryKey
=
'id'
;
public
$timestamps
=
false
;
public
function
platform
(){
return
$this
->
belongsTo
(
'bdd\models\platform'
,
'id'
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment