Log message #4198765

# At Username Text
# Aug 19th 2019, 14:42 dereuromark extending sth from core or plugin should be the absolute exception, not the rule
# Aug 19th 2019, 14:41 dereuromark you destroy the whole idea of plugin using this way
# Aug 19th 2019, 14:41 dereuromark yeah, why the copy into App view?
# Aug 19th 2019, 14:41 wgon0001 Am I wrong on that step?
# Aug 19th 2019, 14:41 wgon0001 But just make another copy into view helper
# Aug 19th 2019, 14:40 wgon0001 I am did using plugins helper
# Aug 19th 2019, 14:40 dereuromark @davorminchorov looks then somewhat like this for your helper calls: https://github.com/dereuromark/cakephp-ide-helper/blob/master/docs/img/model_autocomplete_loadmodel.png
# Aug 19th 2019, 14:31 dereuromark magic strings on their own are evil, prevent them for this and many other reasons.
# Aug 19th 2019, 14:31 dereuromark Tip: Once loaded the plugin, use IdeHelper and always use autocomplete for your phpstorm IDE to auto-display possible values here for the loadHelper() method :slightly_smiling_face:
# Aug 19th 2019, 14:29 ricksaccous @wgon0001 i thought you were using the plugin's helper?
# Aug 19th 2019, 14:29 ricksaccous wait why does he have his own helper there
# Aug 19th 2019, 14:29 ricksaccous that is his app code based on what he's saying
# Aug 19th 2019, 14:28 dereuromark Or is that in your app code?
# Aug 19th 2019, 14:28 dereuromark You should always load the helper with proper plugin prefix.
# Aug 19th 2019, 14:16 ricksaccous like ChartsJS.Chartjs
# Aug 19th 2019, 14:16 ricksaccous or I think you have to use a period
# Aug 19th 2019, 14:16 ricksaccous ;)
# Aug 19th 2019, 14:16 ricksaccous ChartsJS/Chartjs might be what you need to load
# Aug 19th 2019, 14:15 ricksaccous when loading a helper from a plugin
# Aug 19th 2019, 14:15 ricksaccous you have to user the plugin prefix
# Aug 19th 2019, 14:14 wgon0001 I have put helper in corresponding folder and did set up the loadHelper function
# Aug 19th 2019, 14:13 slackebot <wgon0001>
# Aug 19th 2019, 14:12 ricksaccous @wgon0001 gist your app view code
# Aug 19th 2019, 14:08 wgon0001 And I installed it with composer require command
# Aug 19th 2019, 14:08 wgon0001 Hi everyone, here I am encountering a problem which to plugins (nnnick/ChartsJS) which require a helper to be loaded, I have tried to load it into AppView.php, but I am getting a fatal error with “Cannot declare a class ***\View\Helper\ChartjsHelper.php, because the name already in use on line0”, any ideas on how to load with plugins?
# Aug 19th 2019, 14:07 davorminchorov `->getSchema()->getColumnType('email_adddress')` returns null
# Aug 19th 2019, 14:07 dereuromark you could introspect the annotations on top :slightly_smiling_face:
# Aug 19th 2019, 14:07 dereuromark would be from outside
# Aug 19th 2019, 14:07 dereuromark nope
# Aug 19th 2019, 14:07 val is schema accessible in Entity?
# Aug 19th 2019, 14:07 dereuromark using the schema of table, sure.
# Aug 19th 2019, 14:06 val Is there an easy way to check whether the property in Entity class represents a column but not an association?
# Aug 19th 2019, 14:05 davorminchorov TypeMap shows the field as string using the getSchema() method
# Aug 19th 2019, 14:02 davorminchorov Thanks!
# Aug 19th 2019, 14:01 admad cya
# Aug 19th 2019, 14:00 admad the exception is thrown before the final query is even generted
# Aug 19th 2019, 14:00 davorminchorov That's how I usually check queries from the ORM in Laravel but I am asking if there's something similar in CakePHP
# Aug 19th 2019, 14:00 admad @dereuromark true, but that's unlikely
# Aug 19th 2019, 14:00 davorminchorov I am asking how to get the query
# Aug 19th 2019, 13:59 admad i'll move on if you are not interested in trying what i suggest :slightly_smiling_face:
# Aug 19th 2019, 13:58 davorminchorov Is there a toSql / event listener for queries like Laravel?