Commit Graph
27 Commits
Author SHA1 Message Date
Ben Claar 92ec89bf87 Use camel case for model scope generation
In L4, scope functions only work with camel case (http://four.laravel.com/docs/eloquent#query-scopes)
2013-08-23 14:47:14 -05:00
Barry vd. Heuvel afeaf2f28b Add arguments for query scopes
Should fix #31
2013-08-23 13:47:25 +02:00
Barry vd. Heuvel e368338ba7 Make writing to files more default behaviour
But ask before overwriting. You can still force with -W
2013-08-23 13:29:44 +02:00
Barry vd. Heuvel 28ce1492ad Update namespace for ReflectionDocblock 2013-08-08 19:09:24 +02:00
Barry vd. Heuvel f7f0e025f3 Add reset option for Model command 2013-06-24 14:48:10 +02:00
Barry vd. Heuvel 17ae13ce56 Update default text 2013-06-22 12:59:33 +02:00
Barry vd. Heuvel 8db4443879 Use fork of ReflectionDocblock
So I can use a stable version.. Fixes #21
2013-06-08 13:02:28 +02:00
Barry vd. Heuvel 77c8bfa05a Fix default model path 2013-06-04 14:46:18 +02:00
Barry vd. Heuvel cca1b5896e Only allow relative path 2013-05-30 21:26:02 +02:00
Barry vd. Heuvel 3afc4a3ade Add dir option and fix namespace for models 2013-05-30 21:22:00 +02:00
Barry vd. Heuvel a4ab0a5969 Allow writing directly to models 2013-05-30 12:45:26 +02:00
Barry vd. Heuvel b0b324b8cc Use reflection and reflectiondocblock
Load the original docblock and append the changes. This way, you can
just copy the new comments in whole (next step, replace in file..)
2013-05-30 11:54:45 +02:00
Barry vd. Heuvel dab594804b Map enum to string
Fixes #19
2013-05-30 10:15:56 +02:00
Barry vd. Heuvel 83d5fe048d Revert changes 2013-05-29 17:32:38 +02:00
Barry vd. Heuvel 77b1bc923e Set mapping for enum 2013-05-29 18:31:33 +03:00
Barry vd. Heuvel 9090aeb766 Catch getType
Hopefully fixes #19
2013-05-29 18:24:43 +03:00
Barry vd. Heuvel 16b3b872a3 Update license (MIT)
To source/readme
2013-05-29 10:24:30 +02:00
Barry vd. Heuvel 12db549bd8 Add scope methods
Fixes #12
2013-05-20 22:49:21 +02:00
Barry vd. Heuvel 73aaf16127 Fix alignment 2013-05-09 23:07:55 +02:00
Barry vd. Heuvel 4e6458cb34 Absolute namespace in properties
Again for #9 ;)
2013-05-09 23:01:43 +02:00
Barry vd. Heuvel 11ac602667 Fix namespaces for Models
Also described in #9
2013-05-09 22:42:05 +02:00
Andrew Ellis 647ce69047 fixed a bug causing the model command to fail on methods that are not relationships 2013-05-07 15:53:19 -06:00
Barry vd. Heuvel b9a58e9d08 Determine relation type
Using reflection and parsing the sourcecode.
2013-05-07 10:34:29 +02:00
Barry vd. Heuvel 47f60456f4 Change return values
Use Carbon by default, and allow Eloquent array (but should be changed
to the real models)
2013-05-03 11:31:56 +02:00
Barry vd. Heuvel 3207a2f2cf Use Symfony classloader
Instead of copying it. (Same as the Composer autoloader)
2013-04-29 10:27:27 +02:00
Barry vd. Heuvel 7160a37e49 Work on Model Docs
Use classmapper from composer and add some checks to make sure the class
exist.
Also, tweak argument/options and filename.
2013-04-29 10:16:33 +02:00
Barry vd. Heuvel 1d26dfe58c Add initial version for model docs 2013-04-27 22:12:35 +02:00