Max Matiukhin
25b5576f57
generate methods for the SoftDeletes trait ( #518 )
2017-06-08 12:19:38 +02:00
Michael Tsang
d6d99994c3
return eloquent builder instead of plain database builder from model methods ( #521 )
2017-06-08 12:19:27 +02:00
Neil Farrington
3814fe86ca
Resolve displaying @return types with descriptions ( #491 )
2017-04-14 08:56:19 +02:00
JC Lee
3ab73555d9
Add support for pgsql for boolean types. ( #489 )
2017-04-11 07:31:58 +02:00
Antoine Aflalo
ff3844e4e1
Implements Nullable ( #487 )
...
* Add nullable support
Fixes #407
* Add nullable to setProperty
Better do it like this to still be able to override the base type if wanted
* Cleanup nullableColumns between models iterations
Also rename it to nullableColumns since it contains multiple columns
* Fix formatting
2017-04-08 10:19:23 +02:00
JC Lee
d11bf58084
Fix #480 where tinyint is casts as bool ( #481 )
...
* Fix #480 where tinyint is casts as bool
`tinyint` is classified by bool as doctrine/dbal, but it should not be so in our use case. `tinyint` is better PHPDoc'ed as int. If the user wants bool, he should use Eloquent's `$casts` property to do that.
* Pass PSR-2 check
* Remove comment as requested
2017-04-05 09:45:19 +02:00
Ivan Boldyrev
144a50e8ee
Add disable write magic methods on models ( #466 )
...
* Add desable write magic methods on models
* Fix property name
* Opps commit
* Fix
* Change default parameter of property
2017-03-16 11:46:50 +01:00
arasharg
456853be46
ignore intermediate table models ( #454 )
2017-02-22 08:59:06 +01:00
Django Eijgensteijn
a7fc2ec489
Sorting model docs ( #424 )
2017-01-05 22:20:42 +01:00
ockle
13e65d3885
if model scope method parameters have typehints, add them to the docblock
2016-10-12 21:53:42 +01:00
Bogdan Padalko
71cb03ca6a
Use accessor docblock return type to guess property type
2016-09-06 12:24:42 +03:00
Barry vd. Heuvel
884eaeeb1a
Check if getCasts() exists
...
Fixes #382
2016-08-26 13:37:21 +02:00
Andrew Ellis
6f9b90c204
hotfix for type overrides
...
Oops, looks like I forgot to commit one call to the new method. This is related to #377 .
2016-08-25 18:53:51 -06:00
Andrew Ellis
f3a3533b2d
fixed blank line errors for travis-ci build
2016-08-19 12:37:17 -06:00
Andrew Ellis
f8c6ec95f6
allow a user to define the type overrides
2016-08-19 12:20:34 -06:00
leo108
4b47c0b61c
add support for $casts
2016-08-19 07:35:07 +08:00
Barry vd. Heuvel
8f004f5d6b
Merge pull request #326 from valorin/master
...
Allow for camel case model properties.
2016-07-04 13:45:34 +02:00
Travis Northcutt
dbfcfd66c5
An --> A
2016-06-14 07:23:16 -06:00
Barry vd. Heuvel
3064296216
Use fork of reflection docblock
2016-06-13 21:35:48 +02:00
Barry vd. Heuvel
bae462604e
Add test config, CS rules and fix CS
2016-06-08 21:36:25 +02:00
Tommi Finnilä
4f227d5c57
Add hasManyThrough relationship
2016-05-25 09:28:34 +01:00
Stephen Rees-Carter
a72cd81e5f
Allow for camel case model properties.
2016-03-03 21:36:10 +11:00
Barry vd. Heuvel
f1ebd847aa
Check on actual model, not facade
...
Fixes #311
2016-03-03 09:45:00 +01:00
Barry vd. Heuvel
83597196f9
Prevent double mixin tags
2016-03-03 09:43:49 +01:00
Barry vd. Heuvel
f50470ba49
Add morphOne, fix morphTo
...
Fixes #236 thanks to @boxfrommars
2016-03-02 10:54:41 +01:00
Barry vd. Heuvel
467b5f5b5f
Always add whereColumn
...
Fixes #300 , #325
2016-03-02 10:42:37 +01:00
Barry vd. Heuvel
c213be3d3c
Merge pull request #305 from matiaspub/patch-1
...
Add extend \Eloquent for ide-helper:models command
2016-03-02 10:39:21 +01:00
Barry vd. Heuvel
4b8ba85b34
Merge pull request #315 from icedfish/ignore_exception
...
Ignore abstract class or interface, not throw exception
2016-01-28 09:19:58 +01:00
Yu Bing
3a01e351de
Ignore abstract class or interface, not throw exception
2016-01-28 11:37:08 +08:00
Yu Bing
add34665a8
fix typo
2016-01-28 11:20:48 +08:00
Yu Bing
c77752bb58
recover model's whereXXX() helper function
2016-01-28 11:18:42 +08:00
Sergius
4069863d0c
Add extend \Eloquent for ide-helper:models command
...
It's help author to close many issues! )
Like: #269 , #259 , #248 , #209 , #191 , #74 ,
and https://github.com/laravel/framework/issues/7558 )))
etc. maybe
2016-01-12 15:33:05 +02:00
Kieran
2f83db311f
Fixes #293
2015-12-14 13:29:24 +00:00
miraage
5708012a77
fix(models-command): check for default reflectionparameter value to prevent fail in variadic params
2015-12-06 13:49:27 +03:00
Barry vd. Heuvel
76f09aaa65
Remove magic where
2015-10-19 09:32:38 +02:00
Barry vd. Heuvel
56f89502e3
Tweak relation object
...
Tweaks #273
2015-10-19 09:31:08 +02:00
Kevin Laude
e48974e545
Add custom collection support
...
Add support for models that override Eloquent's newCollection() with a
custom collection type. Do this by executing the relationship on the
model then executing that relationship's newCollection() method to see
what type of colletion class is returned.
Remove the now-unused
Barryvdh\LaravelIdeHelper\Console\ModelsCommand::getClassName() method.
2015-10-18 20:54:25 -05:00
Mahmut Bayri
5d4056fe87
Trim tag text. If tag doesn't have comment or the comment has any space at the end of line, phpcs (with --standard=PSR2) dedects an error.
2015-08-13 13:42:10 +03:00
Barry vd. Heuvel
326e8ea25f
Bring back changes
...
Missed them from previous commit
2015-08-10 20:38:57 +02:00
Barry vd. Heuvel
e7ee934bb1
Inject filesystem
2015-08-10 20:36:00 +02:00
bebnev
dc62d35bed
fix parsing relations arguments
2015-08-09 15:28:04 +03:00
bebnev
76674be735
fix model docBlocks duplicates
...
Add each parsed model to ignore list, so if it exists more than once it will not be parsed twice.
2015-08-01 17:13:43 +04:00
Barry vd. Heuvel
8515b7ac0b
Use verbosity to hide some errors
2015-06-18 09:11:05 +02:00
Barry vd. Heuvel
89b585b242
Merge pull request #212 from modder2/modder2-patch-1
...
Bug fix with model relations
2015-05-15 12:26:15 +02:00
Alexander
f5b1248a37
Bug fix with model relations
...
If relation has other methods, generating doc is fail.
E.g.
$this->belongsToMany('App\User')->withTimestamps();
generate this:
@property-read \Illuminate\Database\Eloquent\Collection|\App\User')->withTimestamps([] $drinks
2015-05-14 14:44:54 +03:00
MrCue
a861bcaf1b
Update ModelsCommand.php
...
Work with tables in different databases
2015-05-13 16:46:47 +01:00
Barry vd. Heuvel
bb3bd2645d
Merge pull request #190 from MalikinSergey/patch-1
...
Add Query\Builder return type to magic scope* methods
2015-05-06 12:08:42 +02:00
Malikin Sergey
1d3a98f0e5
Add Query\Builder return type to magic scope* methods
2015-03-29 13:30:50 +03:00
Vladislav Rastrusny
8378f1bd67
Adding custom DB types support for models
2015-03-03 13:02:47 +03:00
Barry vd. Heuvel
ab50c245d0
Update config/resources for L5
2015-01-28 09:34:45 +01:00