[TYPO3-mvc] Failing when insert a record
TSniper
masmoudi_moha at yahoo.fr
Tue Jun 10 16:50:10 CEST 2014
Quote: g4-lisz wrote on Tue, 10 June 2014 11:29
----------------------------------------------------
> Hi
>
> there queries are designed to ... well: query, i.e. return a result.
>
> If you use MVC, why you want to insert records directly?
>
> Br
> Till
>
> On 06/10/2014 11:12 AM, TSniper wrote:
> >
> > Fatal error: Call to a member function fetch_assoc() on a non-object
> > in
> > C:\wamp\www\typo3art\typo3\sysext\core\Classes\Database\DatabaseConnection.php
> > on line 1034
> >
> > My action is :
> >
> > $query = $this->createQuery();
> > $query->getQuerySettings()->setReturnRawQueryResult(TRUE);
> >
> > $query->statement("INSERT INTO domain_model_person (pid,
> > showdetails ) VALUES
> > (136, 0);" );
> > return $query->execute();
> >
> > TYPO3 version : 6.1.5
> > _______________________________________________
> > TYPO3-project-typo3v4mvc mailing list
> > TYPO3-project-typo3v4mvc (at) lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
----------------------------------------------------
I wanted to insert it directly because i wanna debug the query, otherwise the backend will be stack right there
More information about the TYPO3-project-typo3v4mvc
mailing list