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
Barry vd. Heuvel
7bc74b1844
CS tweaks
2015-01-21 11:22:44 +01:00
Barry vd. Heuvel
cfa0333446
Tweak quotes for doctrine warning
2015-01-21 11:10:03 +01:00
Barry vd. Heuvel
5c6fa1d43f
Merge pull request #148 from BaldaI/fix-relations
...
Fixed class name resolution via get_class() and static::class.
2015-01-21 11:05:40 +01:00
Barry vd. Heuvel
23db0e06ca
Merge pull request #150 from qufo/patch-1
...
Update ModelsCommand.php , Add COMMENT info.
2015-01-21 11:03:33 +01:00
Barry vd. Heuvel
52b3accd70
Use laravel instance instead of App facade
...
Addition to #138
2015-01-21 11:01:29 +01:00
Barry vd. Heuvel
cc07cd3b2c
Merge pull request #138 from SebSept/patch-1
...
Model doc : create model using App::make($name)
2015-01-21 11:00:26 +01:00
qufo
3113f58f45
Update ModelsCommand.php , Add COMMENT info.
...
When define a class(table) , we will add some comment information to the property (field), the comment information was useful for coder who has bad memory.so ,I think we'd better show the comment at the end of * @property line.
I'm a Chinese, most of my team was Chinese too, the comment information was written by Chinese, so , it's helpful!
-------------------------
当我们定义一个类(表)的时候,我们会给对象(字段)加上一些注释信息,这些注释信息对记忆力不好的程序员很有用,所以我认为我们可以在属性行的尾部加入注释信息
我是个中国人,我团队中的大部分人也是中国人,这些注释信息是中文写的,对他们很有帮助。
2015-01-08 17:28:00 +08:00
BaldaI
d00dc62ed6
Fixed class name resolution via get_class() and static::class.
2015-01-01 13:58:32 +10:00
S. Zain Mehdi
5d4af73c29
Fixed class name resolution via ::class (#143,#129)
2014-12-19 11:26:42 -08:00
Philip Keighley
231e125821
Fix typo in ModelsCommand.php . Fixes #141
2014-12-17 10:28:07 -05:00