I've got a entity 'Platform' with a 2m collection to entity 'Hotspot' with 
1 assocation in it. This hotspot represents in this case a post on your 
facebook timeline, and when it gets removed, i need to take actions on 
facebook's side also. I'm trying to wrap this in listeners, but so far so 
good...

onFlush:

foreach ($uow->getScheduledCollectionDeletions() as $col) {
  if ($col->getTypeClass()->name == 'Portal\CoreBundle\Entity\Hotspot' && 
$col->getOwner() instanceof ContentIssuePlatform) {
   $owner = $uow->getOriginalEntityData($col->getOwner());
   while(@ob_end_clean());echo '<pre>';echo __FILE__.':'.__LINE__."\n";
var_dump($owner['Hotspots']);die;
   echo '<pre>';echo __FILE__.':'.__LINE__."\n";var_dump($owner['Hotspots'
]->count());
   echo '<pre>';echo __FILE__.':'.__LINE__."\n";var_dump($owner['Hotspots'
]->getSnapshot());die;


If the assocation gets removed from the collection, there is no way for me 
to find out inside listeners what that association was...

Anyone?

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to