Manually trigger callbacks on associated models with saveAll()

2009-07-15 Thread Dennis S. Hennen

I have

  ImageSet hasMany Image
  Image actsAs MeioUpload (an upload behavior from the Bakery)

My add form has one ImageSet and 3 Images.

When I $this->ImageSet->saveAll($this->data) in the controller, it
creates the ImageSet and Image records, but the callbacks aren't
called for Image.

I know this is expected -- callbacks on associations do not get called
in Cake 1.2.

The question is: is there a way to get around this limitation and have
the callbacks triggered? I've not thought of a way to do this short of
overloading saveAll() in my ImageSet model.

There is this somewhat related patch from two years ago.
https://trac.cakephp.org/ticket/2056

Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Calendar files for CakeFest schedule

2009-06-25 Thread Dennis S. Hennen

I created downloadable/subscribable calendars for CakeFest (http://
tinyurl.com/n6stwg) and the Workshop (http://tinyurl.com/n7wy9u)
schedules. Enjoy!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread Dennis S. Hennen

Consider Post hasMany Comment

 Comment->find('all') returns {n}.Comment.*

 Post->find('all') gives you Comment.{n}.*

If I want a helper to do processing on a list of comments, I have to
handle both potential formats, or massage the data.

Related to this is the $primary parameter to the afterFind callback.

Perhaps find results as objects instead of arrays?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: email component attach domainkeys

2009-03-22 Thread Dennis S. Hennen

> Does anyone have experience with domain keys and how they should be
> implemented in the mail function ?

I did not implement this myself, but we were using postfix on our box
and our sysadmin had the domainkey added by the MTA, not from within
Cake or PHP.

-dsh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



JOB: PHP Code Reviewer

2007-01-03 Thread Dennis S. Hennen


Job Opportunity:

Senior level PHP programmer to do code reviews of on-going project.
You will review our existing code base as well as new code and make
recommendations to increase the quality and reusability in our code.

Must have extensive experience with MVC paradigm. Applicants with
with CakePHP experience are highly desired.

Must be self starter and be able to work independently.

Will require up to 5-10 hours per week. This work is expected to last
for approximately 8 weeks.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---