As far as i remember i wasnt successful. sorry for not being more helpful

On Wed, Jun 4, 2014 at 10:07 AM, Megha Agarwal <[email protected]> wrote:

> ohkk......
> Were u successful to do that???
> If yes, then i'll try to explore more.....
>
>
>
> On Tuesday, June 3, 2014 4:25:43 PM UTC+5:30, Pr ouso wrote:
>
>> I am sorry, I cant help. I dropped that project ages ago.
>>
>>
>> On Tue, Jun 3, 2014 at 7:41 AM, Megha Agarwal <[email protected]> wrote:
>>
>>> Hello Phedon,
>>>
>>> Actually I am having the same problem as yours.
>>> I successfully managed to have the input field on my web but i am unable
>>> to store the record in the database.
>>> Could you please tell me how you managed to store the record in the
>>> database.
>>>
>>> Reply asap.
>>>
>>> Thanks,
>>> Megha
>>>
>>> On Wednesday, November 20, 2013 12:45:46 PM UTC+5:30, Pr ouso wrote:
>>>
>>>> Greetings guys, I am quite new to Doctrine framework and I have the
>>>> following issue:
>>>> I am working with a web-based project that uses the doctrine framework
>>>> to handle the database. I added an extra field in the database that I can
>>>> successfully show (as input field) on the web interface. But when enter a
>>>> value it is not stored in the database.
>>>> After following the source code I found that an auto-generated class
>>>> was created. Since this was an open source project, the auto-generated
>>>> class was already there.
>>>> I modified the class to my needs and managed to store the record in the
>>>> database.
>>>>
>>>> My question is this. Is that the proper way to do that? Could it get
>>>> overridden any time? (which means that I will loose the custom code)
>>>>
>>>>
>>>> I was reading this
>>>> <http://docs.doctrine-project.org/projects/doctrine1/en/latest/en/manual/introduction-to-models.html>
>>>> document that says that
>>>> 'Generating from existing databases is only meant to be a convenience
>>>> for getting started. After you generate from the database you will have to
>>>> tweak it and clean things up as needed.'
>>>>
>>>> But I am not sure if I should do that or try regenerate the class.
>>>>
>>>>
>>>> class:
>>>>
>>>> // models/generated/BaseUser.php
>>>> /**
>>>>  * This class has been auto-generated by the Doctrine ORM Framework
>>>>
>>>> * * @property string $jobCode  //this is my custom field  * @method
>>>> string                      getJobCode()              Returns the current
>>>> record's "jobCode" value * @method JobTitle                   setJobCode()
>>>>              Sets the current record's "jobCode" value *
>>>>  */
>>>> abstract class BaseUser extends Doctrine_Record
>>>> {
>>>>     public function setTableDefinition()
>>>>     {
>>>>         $this->setTableName('user');
>>>>         $this->hasColumn(
>>>>             'id', 'integer', 8,
>>>>             array(
>>>>                 'type' => 'integer',
>>>>                 'length' => 8,
>>>>                 'primary' => true,
>>>>                 'autoincrement' => true
>>>>             )
>>>>         );
>>>>    .
>>>>    .
>>>>   * $this->hasColumn('job_code as jobCode', 'string', 100, array(*
>>>> *        'type' => 'string',*
>>>> *        'length' => 100,*
>>>> *        ));*
>>>>
>>>>     }
>>>>  public function setUp()
>>>>     {
>>>>       .....
>>>>     }
>>>>
>>>> }
>>>>
>>>> Can anyone point me out to the right direction?
>>>> Thanks,
>>>> Phedon
>>>>
>>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "doctrine-user" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>> topic/doctrine-user/i__i2J0l9vI/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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.
>>>
>>
>>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "doctrine-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/doctrine-user/i__i2J0l9vI/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

-- 
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