Log message #4193406

# At Username Text
# Jul 16th 2019, 09:03 dereuromark I feel like there is some tooling missing here to make life easier for this kind of thing. But yeah, most backends are kind of default english only anyway
# Jul 16th 2019, 09:00 neon1024 @dereuromark I don’t, but then I’m English and we’re a bit narrow minded on the whole localisation thing
# Jul 16th 2019, 08:57 dereuromark Do people ship their plugins with a default po(t) file? If so, do they do some extraction automation on it regurarly?
# Jul 16th 2019, 08:24 cakephp-slack Hello, I have a CakePHP 2 plugin and I would like to load an app-specific config file. I think this config file should be placed in the app/Config/my-plugin.php (of the app using the plugin) but how do I go about loading this config file in my plugin?
# Jul 16th 2019, 08:21 felix.robaglia ``` public function buildRules(RulesChecker $rules) { $rules->add($rules->isUnique(['email'], 'Ce mail est déjà utilisé.')); return $rules; }```
# Jul 16th 2019, 08:21 felix.robaglia here is the code :
# Jul 16th 2019, 08:21 felix.robaglia Hello, I have a rules in my UsersTable that says mail must be unique, but is there a way to say "email must not exist on another row, unless the 'deleted' column is not null in this case we can use that mail" ?
# Jul 16th 2019, 08:20 neon1024 I have PostcodeType, TelephoneType and EncryptedStringType classes
# Jul 16th 2019, 08:20 neon1024 Yep
# Jul 16th 2019, 08:12 admad @neon1024 so your custom type is called "Telephone" ?
# Jul 16th 2019, 08:03 neon1024 This seems like a bug to me
# Jul 16th 2019, 08:03 neon1024 `'telephone_number' => ['type' => 'telephone', 'length' => 255, 'null' => false, //etc`
# Jul 16th 2019, 08:03 neon1024 I just baked a fixture which has a custom data type, and it came out as
# Jul 16th 2019, 02:20 markstory Fixed now
# Jul 16th 2019, 02:05 markstory bake docs are currently broken, I’m working on fixing them :slightly_smiling_face:
# Jul 16th 2019, 00:48 yamcomnet Thanks guys for the support!
# Jul 16th 2019, 00:47 yamcomnet my God!
# Jul 16th 2019, 00:15 challgren @ndm with the eagle eye!
# Jul 16th 2019, 00:15 ndm it should be `ADmad` with a capital `D`
# Jul 16th 2019, 00:05 yamcomnet i think that this is again the same problem. Just cannot figure out how paths are different this time
# Jul 16th 2019, 00:04 yamcomnet yep
# Jul 16th 2019, 00:04 challgren Did you `composer install`?
# Jul 16th 2019, 00:04 slackebot <yamcomnet>
# Jul 16th 2019, 00:03 slackebot <yamcomnet>
# Jul 16th 2019, 00:02 yamcomnet i will do that. Just after i have figured out next problem. Moving to another server and when loading that same plugin i get
# Jul 15th 2019, 22:44 challgren File a issue in the git repo for that
# Jul 15th 2019, 22:06 yamcomnet for some reason moveUp/moveDown are inverted but it does not matter.
# Jul 15th 2019, 22:05 yamcomnet got it working. Thanks guys!!
# Jul 15th 2019, 21:31 yamcomnet whoever is behing this wicked plugin system is no more sane than me
# Jul 15th 2019, 21:30 yamcomnet thanks @ndm
# Jul 15th 2019, 21:30 yamcomnet how the hell should one know this stuff ?? *ucked up stuff :)
# Jul 15th 2019, 21:29 ndm `Sequence` behavior of the `ADmad/Sequence` plugin
# Jul 15th 2019, 21:29 ndm `ADmad/Sequence.Sequence`
# Jul 15th 2019, 21:29 yamcomnet how should that be in relation to $this->addPlugin('ADmad/Sequence');
# Jul 15th 2019, 21:28 yamcomnet $this->addBehavior('ADmad/Sequence', [ ...
# Jul 15th 2019, 21:25 yamcomnet my god, this plugin business.. Missing Behavior
# Jul 15th 2019, 21:18 yamcomnet got it!
# Jul 15th 2019, 21:18 ndm The plugin's name is `ADmad/Sequence`, not `Admad/sequence`.
# Jul 15th 2019, 21:17 ndm `Plugin::load()` will invoke the very same method that throws the exception that you've shown. If you're passing the same (incorrect) name, you should get the same exception, unless you're passing a custom `path`.
# Jul 15th 2019, 21:15 yamcomnet actually it does not even work "the old way" -> Unknown method "moveUp"
# Jul 15th 2019, 21:10 yamcomnet @ndm for some reason it only loads the plugin old way. I dont know whats the difference under the hood?