# |
Jun 11th 2018, 12:02 |
josbeir |
@lorenzo little ES question, is there a reason why the ES ResultSet class doesn't implement Cake\Datasource\ResultsetInterface ? |
# |
Jun 11th 2018, 12:01 |
lorenzo |
definitely |
# |
Jun 11th 2018, 11:57 |
pedroseco |
in this case the behaviour would be the best approach don’t you think? |
# |
Jun 11th 2018, 11:56 |
pedroseco |
after it gets manipulated |
# |
Jun 11th 2018, 11:56 |
pedroseco |
or I could just save this data into a secondary “body” field |
# |
Jun 11th 2018, 11:56 |
lorenzo |
then adding the functions to the entity sounds best |
# |
Jun 11th 2018, 11:55 |
pedroseco |
Would only use it on the read |
# |
Jun 11th 2018, 11:55 |
lorenzo |
joomp if you add a die() in the initialize method of your companies table, does it die? |
# |
Jun 11th 2018, 11:55 |
pedroseco |
not this case, I would maintain the original data in the db |
# |
Jun 11th 2018, 11:55 |
lorenzo |
it depends, I woudl use the behavior if you want to save the data directly in the database after applying the function |
# |
Jun 11th 2018, 11:54 |
pedroseco |
Hi @lorenzo, so the behaviour would not be a good option? |
# |
Jun 11th 2018, 11:54 |
lorenzo |
@pedroseco you could add those methods to the entity |
# |
Jun 11th 2018, 11:51 |
loginews |
ok I found the answer: it's $psale->saleitem->ITEMNUM.... thanks. |
# |
Jun 11th 2018, 11:49 |
joopm |
thats the model file |
# |
Jun 11th 2018, 11:49 |
joopm |
https://thepasteb.in/p/MjhxLXXkq5kSV |
# |
Jun 11th 2018, 11:47 |
joopm |
and base url is localhost |
# |
Jun 11th 2018, 11:47 |
joopm |
i use xampp |
# |
Jun 11th 2018, 11:47 |
joopm |
i want to use in conditional association |
# |
Jun 11th 2018, 11:46 |
joopm |
https://thepasteb.in/p/j2hlw88yjgnhP |
# |
Jun 11th 2018, 11:46 |
pedroseco |
question: I made a method that replaces strings from my “Posts” table body field, and altough I’m using it directly on my view() method, I ask if there was a better way on doing this since I have more methods that call my data. Should I be using a method to keep this DRY? |
# |
Jun 11th 2018, 11:46 |
loginews |
File uploaded https://cakesf.slack.com/files/U435V89H8/FB64EH0DC/learning_association.txt / https://slack-files.com/T053DPNCM-FB64EH0DC-36015f6b74 - line 8 above is wrong. What is the right syntax ? Thanks. |
# |
Jun 11th 2018, 11:44 |
pedroseco |
Hi everyone! |
# |
Jun 11th 2018, 11:44 |
lorenzo |
what’s the url you use for your development environment? |
# |
Jun 11th 2018, 11:43 |
lorenzo |
I would say that you should focus on first figuring out why debugkit is not present |
# |
Jun 11th 2018, 11:43 |
lorenzo |
but that is not the issue, I think |
# |
Jun 11th 2018, 11:43 |
lorenzo |
btw, you should use `find('external')`instead of `External` |
# |
Jun 11th 2018, 11:43 |
joopm |
the log file shows this Error: [BadMethodCallException] Unknown finder method "External" |
# |
Jun 11th 2018, 11:42 |
joopm |
the error show exactly to this line $companies = $this->paginate($this->Companies); |
# |
Jun 11th 2018, 11:42 |
lorenzo |
do you see any error about debugkit in the logs? |
# |
Jun 11th 2018, 11:42 |
joopm |
i dont know the reason why it is setup in bootstrap |
# |
Jun 11th 2018, 11:41 |
lorenzo |
why not? |
# |
Jun 11th 2018, 11:41 |
joopm |
debugkit is not avaliable |
# |
Jun 11th 2018, 11:41 |
lorenzo |
what about in debugkit? |
# |
Jun 11th 2018, 11:36 |
joopm |
but can not see anything according too autotables |
# |
Jun 11th 2018, 11:34 |
joopm |
Cake\ORM\Association->attachTo(Object(Cake\ORM\Query), Array) |
# |
Jun 11th 2018, 11:34 |
joopm |
Cake\ORM\Association->find('External', Array) |
# |
Jun 11th 2018, 11:33 |
joopm |
ican see like this :Cake\ORM\Table->find('External', Array) |
# |
Jun 11th 2018, 11:33 |
joopm |
well on the error.log : |
# |
Jun 11th 2018, 11:33 |
joopm |
:lorenzo thank you that you still not gave up |
# |
Jun 11th 2018, 11:31 |
lorenzo |
joopm did you figure out if debukit is giving you a warning about auto tables? |
# |
Jun 11th 2018, 11:23 |
edoreld |
thanks |