Trying something very simple here
--
-- In my Listener I am trying to get
$event->subject()->id
$event->subject()->id
but I keep getting Table "App\Model\Table\PostsTable" is not associated with "id"
What am I missing here?
Tarique
=============================================================
Hire a CakePHP dev team : http://sanisoft.com
=============================================================
Hire a CakePHP dev team : http://sanisoft.com
=============================================================
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment