> hai,
> saverecord function and saveplanprivacy
> $obj_meetnewpeople = $create_meetnewpeople->saveRecord($create_record);
> }
> //if(isset($peopleprivacy))
> // {
> // if($peopleprivacy[2] =="layerpeople")
> // {
> $creatorId=$this->getUser()->getAttribute('detail')->getId();
> $relativeId=$request->getParameter("friendId");
> $meetnewpeopleId=$obj_meetnewpeople['id'];
> var_dump($meetnewpeopleId);
> $type="plan";
> $is_allowed="1";
> $privacypeople= Doctrine::getTable("PrivacyProfilePlanpeople")->savePlanPrivacy($creatorId, $meetnewpeopleId,$relativeId,$type);
> On Thu, Sep 6, 2012 at 12:10 PM, Parijat Kalia <kaliapari...@gmail.com> wrote:
> Dude, don't post your entire code. Can you show me only the code where you attempt to insert this information in two different tables ?
> Thanks,
> Parijat
> Sent from my iPhone
> On Sep 5, 2012, at 8:02 PM, Suriyakala Govindaraj <vksuriya2...@gmail.com> wrote:
>> hai,
>> thnks for ur reply
>> i maked private function after that call executeedit.
>> but records are store in only one table.
>> public function executeEdit(sfWebRequest $request)
>> {
>> $meetnewpeople=Doctrine_Core::getTable('Meetnewpeople')->find(array($reques t->getParameter('id')));
>> $this->form = new MeetnewpeopleForm();
>> $create_meetnewpeople = new Meetnewpeople();
>> $this->layers = $this->personal->getLayer();
>> if($request->isMethod('post'))
>> {
>> $this->layers = $this->personal->getLayer();
>> $create_record = $request->getParameter('meetnewpeople');
>> $create_record['personal_id'] = $this->getUser()->getAttribute('detail')->getId();
>> //var_dump($create_record['personal_id']);
>> if($request->hasParameter('_doneplan'))
>> {
>> $create_record['draft'] = 1;
>> if(is_array($create_record))
>> $obj_meetnewpeople=$create_meetnewpeople->saveRecord($create_record);
>> //$create_meetnewpeople->setDraft(1);
>> }
>> else if($request->hasParameter('_saveplan'))
>> {
>> $create_record['draft'] = 2;
>> if(is_array($create_record))
>> $obj_meetnewpeople=$create_meetnewpeople->saveRecord($create_record);
>> }
>> else
>> {
>> $create_record['draft'] = 0;
>> if(is_array($create_record))
>> $obj_meetnewpeople = $create_meetnewpeople->saveRecord($create_record);
>> }
>> $meetnewpeople = Doctrine::getTable("Meetnewpeople")->find($request->getParameter("id"));
>> $create_meetnewpeople = $create_meetnewpeople->getDataInArray();
>> $peopleprivacy=$request->getParameter('Peopleprivacy');
>> $relativeId=$request->getParameter("friendId");
>> //if(isset($peopleprivacy))
>> // {
>> // if($peopleprivacy[2] =="layerpeople")
>> // {
>> $creatorId=$this->getUser()->getAttribute('detail')->getId();
>> $relativeId=$request->getParameter("friendId");
>> $meetnewpeopleId=$obj_meetnewpeople['id'];
>> var_dump($meetnewpeopleId);
>> $type="plan";
>> $is_allowed="1";
>> $privacypeople= Doctrine::getTable("PrivacyProfilePlanpeople")->savePlanPrivacy($creatorId, $meetnewpeopleId,$relativeId,$type);
>> //$privacypeople_obj= Doctrine_Query::create()->select('p.id,p.relativeId')->from('PrivacyProfile Planpeople p');
>> //var_dump($privacypeople_obj);
>> //}
>> //}
>> }
>> }
>> this is my code.
>> plz help me.
>> what can i missed.
>> On Thu, Sep 6, 2012 at 10:49 AM, Parijat Kalia <kaliapari...@gmail.com> wrote:
>> Make executePrivacy private and call the method from within executeEdit.
>> This is an Object Oriented design question than a Symfony related question.
>> Sent from my iPhone
>> On Sep 5, 2012, at 7:04 PM, Suriyakala Govindaraj <vksuriya2...@gmail.com> wrote:
>>> Hi everybody,
>>> anybody ple help me,
>>> how can i make one form post two action files.
>>> plz help me.
>>> <form action ="<?php echo url_for('@meetnewpeople_edit') ?>" id="meetnewpeople" ..... method="post" enctype="multipart/form-data" >
>>> public function executeedit(sfWebRequest $request)
>>> {
>>> if($request->isMethod('post'))
>>> {
>>> }
>>> }
>>> public function excuteprivacy(sfWebRequest $request)
>>> {
>>> }
>>> --
>>> If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
>>> You received this message because you are subscribed to the Google
>>> Groups "symfony1" group.
>>> To post to this group, send email to symfony1@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> symfony1+unsubscribe@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony1?hl=en
>> --
>> If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
>> You received this message because you are subscribed to the Google
>> Groups "symfony1" group.
>> To post to this group, send email to symfony1@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony1+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony1?hl=en
>> --
>> If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
>> You received this message because you are subscribed to the Google
>> Groups "symfony1" group.
>> To post to this group, send email to symfony1@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony1+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony1?hl=en
> --
> If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
> You received this message because you are subscribed to the Google
> Groups "symfony1" group.
> To post to this group, send email to symfony1@googlegroups.com
> To unsubscribe from this group, send email to
> symfony1+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony1?hl=en
> --
> If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
> You received this message because you are subscribed to the Google
> Groups "symfony1" group.
> To post to this group, send email to symfony1@googlegroups.com
> To unsubscribe from this group, send email to
> symfony1+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony1?hl=en