Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save damianoporta/ffe95a25cac2917d9f20 to your computer and use it in GitHub Desktop.
Save damianoporta/ffe95a25cac2917d9f20 to your computer and use it in GitHub Desktop.
This is a (multiple allowed):
* [x] bug
* [ ] enhancement
* [ ] feature-discussion (RFC)
* CakePHP Version: 3.2.3
* Platform and Target: nginx 1.8, php 5.6.11
### What you did
I have a table AgentsTable.php with this association:
```
$this->hasMany('ProfessionsTags', [
'className' => 'TagsAssociations',
'through' => 'Tags',
'foreignKey' => 'foreign_key',
'conditions' => [
'ProfessionsTags.model' => 'Agents',
'Tags.scope' => 1
],
'propertyName' => 'professions'
]);
```
TagsTable.php
### Expected Behavior
EXPLAIN WHAT IS TO BE EXPECTED, HERE.
### Actual Behavior
EXPLAIN WHAT IS ACTUALLY HAPPENING, HERE.
P.S. Remember, an issue is not the place to ask questions. You can use [Stack Overflow](http://stackoverflow.com/questions/tagged/cakephp)
for that or join the #cakephp channel on irc.freenode.net, where we will be more
than happy to help answer your questions.
Before you open an issue, please check if a similar issue already exists or has been closed before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment