Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
369ecd80
Commit
369ecd80
authored
Mar 30, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staging' into develop
parents
3e0d4684
b66d326e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
6 deletions
+30
-6
artisan
artisan
+1
-1
changes.md
changes.md
+13
-0
model.php
laravel/database/eloquent/model.php
+13
-0
has_many_and_belongs_to.php
...tabase/eloquent/relationships/has_many_and_belongs_to.php
+1
-3
paths.php
paths.php
+1
-1
index.php
public/index.php
+1
-1
No files found.
artisan
View file @
369ecd80
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
* Laravel - A PHP Framework For Web Artisans
*
*
* @package Laravel
* @package Laravel
* @version 3.1.
2
* @version 3.1.
3
* @author Taylor Otwell <taylorotwell@gmail.com>
* @author Taylor Otwell <taylorotwell@gmail.com>
* @link http://laravel.com
* @link http://laravel.com
*/
*/
...
...
changes.md
View file @
369ecd80
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
-
[
Laravel 3.2
](
#3.2
)
-
[
Laravel 3.2
](
#3.2
)
-
[
Upgrading From 3.1
](
#upgrade-3.2
)
-
[
Upgrading From 3.1
](
#upgrade-3.2
)
-
[
Laravel 3.1.3
](
#3.1.3
)
-
[
Upgrading From 3.1.2
](
#uprade-3.1.3
)
-
[
Laravel 3.1.2
](
#3.1.2
)
-
[
Laravel 3.1.2
](
#3.1.2
)
-
[
Upgrading From 3.1.1
](
#upgrade-3.1.2
)
-
[
Upgrading From 3.1.1
](
#upgrade-3.1.2
)
-
[
Laravel 3.1.1
](
#3.1.1
)
-
[
Laravel 3.1.1
](
#3.1.1
)
...
@@ -11,6 +13,7 @@
...
@@ -11,6 +13,7 @@
-
[
Laravel 3.1
](
#3.1
)
-
[
Laravel 3.1
](
#3.1
)
-
[
Upgrading From 3.0
](
#upgrade-3.1
)
-
[
Upgrading From 3.0
](
#upgrade-3.1
)
<<<<<<< HEAD
<a
name=
"3.2"
></a>
<a
name=
"3.2"
></a>
## Laravel 3.2
## Laravel 3.2
...
@@ -26,6 +29,16 @@
...
@@ -26,6 +29,16 @@
-
Replace the
**laravel**
folder.
-
Replace the
**laravel**
folder.
-
Add new
**vendors**
folder.
-
Add new
**vendors**
folder.
<a
name=
"3.1.3"
></a>
## Laravel 3.1.3
-
Fixes
**delete**
method in Eloquent models.
<a
name=
"upgrade-3.1.3"
></a>
## Upgrade From 3.1.2
-
Replace the
**laravel**
folder.
<a
name=
"3.1.2"
></a>
<a
name=
"3.1.2"
></a>
## Laravel 3.1.2
## Laravel 3.1.2
...
...
laravel/database/eloquent/model.php
View file @
369ecd80
...
@@ -385,6 +385,19 @@ abstract class Model {
...
@@ -385,6 +385,19 @@ abstract class Model {
return
$result
;
return
$result
;
}
}
/**
* Delete the model from the database.
*
* @return int
*/
public
function
delete
()
{
if
(
$this
->
exists
)
{
return
$this
->
query
()
->
where
(
static
::
$key
,
'='
,
$this
->
get_key
())
->
delete
();
}
}
/**
/**
* Set the update and creation timestamps on the model.
* Set the update and creation timestamps on the model.
*
*
...
...
laravel/database/eloquent/relationships/has_many_and_belongs_to.php
View file @
369ecd80
...
@@ -170,9 +170,7 @@ class Has_Many_And_Belongs_To extends Relationship {
...
@@ -170,9 +170,7 @@ class Has_Many_And_Belongs_To extends Relationship {
*/
*/
public
function
delete
()
public
function
delete
()
{
{
$id
=
$this
->
base
->
get_key
();
return
$this
->
pivot
()
->
delete
();
return
$this
->
joining_table
()
->
where
(
$this
->
foreign_key
(),
'='
,
$id
)
->
delete
();
}
}
/**
/**
...
...
paths.php
View file @
369ecd80
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
* Laravel - A PHP Framework For Web Artisans
*
*
* @package Laravel
* @package Laravel
* @version 3.1.
2
* @version 3.1.
3
* @author Taylor Otwell <taylorotwell@gmail.com>
* @author Taylor Otwell <taylorotwell@gmail.com>
* @link http://laravel.com
* @link http://laravel.com
*/
*/
...
...
public/index.php
View file @
369ecd80
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
* Laravel - A PHP Framework For Web Artisans
*
*
* @package Laravel
* @package Laravel
* @version 3.1.
2
* @version 3.1.
3
* @author Taylor Otwell <taylorotwell@gmail.com>
* @author Taylor Otwell <taylorotwell@gmail.com>
* @link http://laravel.com
* @link http://laravel.com
*/
*/
...
...
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