Published by dereuromark over 4 years ago
Fixed prefixed (e.g. Admin
) Controller to be annotated properly.
Published by dereuromark over 4 years ago
App
).binaryuuid
Type class type as string
in entities.Published by dereuromark over 4 years ago
Allow for custom project namespace (App
).
Published by dereuromark over 4 years ago
Fixed skipping of abstract classes.
Published by dereuromark over 4 years ago
Small regression fix.
Published by dereuromark over 4 years ago
Fixed skipping of abstract classes.
Published by dereuromark almost 5 years ago
For CakePHP 4.0+ apps.
Highlights:
This is the result when you run the annotator on an upgraded project or plugin:
--- a/src/Model/Table/UsersTable.php
+++ b/src/Model/Table/UsersTable.php
@@ -6,17 +6,22 @@
/**
* @mixin \Cake\ORM\Behavior\TimestampBehavior
* @property \App\Model\Table\RolesTable&\Cake\ORM\Association\BelongsTo $Roles
* @method \App\Model\Entity\User get($primaryKey, $options = [])
- * @method \App\Model\Entity\User newEntity($data = null, array $options = [])
+ * @method \App\Model\Entity\User newEntity(array $data, array $options = [])
* @method \App\Model\Entity\User[] newEntities(array $data, array $options = [])
* @method \App\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, $options = [])
* @method \App\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = [])
- * @method \App\Model\Entity\User[] patchEntities($entities, array $data, array $options = [])
- * @method \App\Model\Entity\User findOrCreate($search, callable $callback = null, $options = [])
+ * @method \App\Model\Entity\User[] patchEntities(iterable $entities, array $data, array $options = [])
+ * @method \App\Model\Entity\User findOrCreate($search, ?callable $callback = null, $options = [])
* @method \App\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, $options = [])
+ * @method \App\Model\Entity\User newEmptyEntity()
+ * @method \App\Model\Entity\User[]|\Cake\Datasource\ResultSetInterface|false saveMany(iterable $entities, $options = [])
+ * @method \App\Model\Entity\User[]|\Cake\Datasource\ResultSetInterface saveManyOrFail(iterable $entities, $options = [])
+ * @method \App\Model\Entity\User[]|\Cake\Datasource\ResultSetInterface|false deleteMany(iterable $entities, $options = [])
+ * @method \App\Model\Entity\User[]|\Cake\Datasource\ResultSetInterface deleteManyOrFail(iterable $entities, $options = [])
*/
class UsersTable extends Table {
It contains the new 4.x path string autocomplete:
Published by dereuromark almost 5 years ago
Added the saveMany()
method to the Table annotations:
@method \App\Model\Entity\BarBarsAbstract[]|\Cake\Datasource\ResultSetInterface|false saveMany($entities, $options = [])
Also added newEmptyEntity()
if Shim plugin is used and added new 3.9 methods already for once this minor is released and those methods become available.
Published by dereuromark almost 5 years ago
API should now be stable. Please test and give feedback.
Published by dereuromark almost 5 years ago
Fixed hasOne() annotations for Entity classes to show nullable relation as |null
in all cases.
Published by dereuromark almost 5 years ago
Published by dereuromark almost 5 years ago
Published by dereuromark almost 5 years ago
Please help to finalize for stable release.
It already contains the new 4.x path string autocomplete:
Published by dereuromark almost 5 years ago
Published by dereuromark almost 5 years ago
Added an improved IDE meta file generator, using value objects and now supporting all (new) directives:
override()
(already used a lot) for input+output couplingexpectedArguments()
for argumentsexpectedReturnValues()
for return valuesregisterArgumentsSet()
as helperYou can now easily add tasks for any method you want to improve the typehinting/autocomplete for.
See Generator (task) docs for details.
This is mainly for PHPStorm, as probably not many others support such a meta file.
Now not just bool true/false, but also the possible "magic strings" are typehinted and usable as single click/enter.
Make sure you upgrade custom generator tasks, and if you use Queue or other plugins that those also are updated to the matching new minor version there.
Published by dereuromark about 5 years ago
Removed false positives on the custom finder list for the IDE meta map.
Now the finder autocomplete works for all valid custom finders found:
Published by dereuromark about 5 years ago
Published by dereuromark about 5 years ago
Fixed a view more template annotation collecting issues.
Published by dereuromark about 5 years ago
Allow auto-collecting view template variables from (ctp/php) files.
This has two key benefits:
This is how your template could currently look like:
This is what IdeHelper template annotator finds and displayes in dry-run output:
Let's apply them for real (without -d).
After letting the annotator update the annotations the errors go away:
Published by dereuromark about 5 years ago
Allow @property-read
tag to be used for virtual entity properties.