Skip to content

Releases: dereuromark/cakephp-ide-helper

1.16.0

15 Nov 17:27
Compare
Choose a tag to compare

Improvements

  • Added routes annotation for new dynamic style (as static setup is deprecated).
    Adds the following into routes.php files:
 <?php
+/**
+ * @var \Cake\Routing\RouteBuilder $routes
+ */
 
 $routes->...
 ...
  • Make sure virtual fields and relation-based (association) properties are also autocompleted for EntityTask of meta file generator.
... = $entity->get('group_id'); // field $entity->group_id
... = $entity->get('group'); // association $entity->group

1.15.0

01 Nov 20:56
Compare
Choose a tag to compare

Improvements

  • Array generics support in doc blocks using arrayAsGenerics config. It is disabled by default for BC, but recommended to enable if it fits to your coding standards.

Updates for CakePHP 4.3+:

  • LocatorAwareTrait::fetchTable() autocomplete and return type support. Best to use this together with PHPStan extension.

The main advantages of this release and the plugin in general can be used together with PHPStorm IDE, as that one provides the most comprehensive support for meta data.

Note: This plugin is now CakePHP 4.2+ and PHP 7.3+.

1.14.1

15 Sep 00:23
3fa15a7
Compare
Choose a tag to compare

Fixes

Fixed up Component annotator to respect configured application namespace (defaults to App otherwise)

1.14.0

31 Aug 10:41
Compare
Choose a tag to compare

Improvements

  • Allow also inherited loadModel() annotating.

1.13.0

15 Jul 08:59
Compare
Choose a tag to compare

Improvements

Reusing existing argument sets

If you want to reuse existing argument sets from other tasks, you can now use the ArgumentsSet value object referencing them within your task:

use IdeHelper\Generator\Directive\ExpectedArguments;
use IdeHelper\ValueObject\ArgumentsSet;

$method = '\\' . static::CLASS_FORMAT_HELPER . '::sidebarLink()';
$list = [
    ArgumentsSet::create(FormatIconFontAwesome5Task::SET_ICONS_FONTAWESOME),
];
$directive = new ExpectedArguments($method, 1, $list);

Just make sure those argument sets are actually available, as this is not checked for you.

1.12.0

30 Jun 12:34
Compare
Choose a tag to compare

Improvements

Disabling object collection annotation in templates is now possible using config templateCollectionObject set to false
This way, if you always pass arrays of Entities for find() or paginate() calls, you can now reflect that.
You can also set a custom FQCN if you need to.

1.11.0

12 Apr 12:35
fefc3bb
Compare
Choose a tag to compare

Improvements

Allow using --ci flag on annotate subcommands

1.10.3

03 Mar 08:44
0381785
Compare
Choose a tag to compare

Fixes

Fixed WinOS compatibility for Illuminator

1.10.2

25 Jan 12:01
afa3b46
Compare
Choose a tag to compare

Improvements

Skip table classes that have files ending in "Table" in the App\Model\Table namespace without them actually extending the CakePHP ORM Table class.

1.10.1

06 Jan 19:29
ca78d0e
Compare
Choose a tag to compare

Improvements

Add (App) controller annotation for components where needed.
This helps to make application-specific controller usage available, e.g. loaded components.