Posts by jmfrolim • 346 points
17 posts
-
0
votes1
answer746
viewsA: SQLSTATE[HY000]: General error: 1 no such table: when running Migration on SQLITE with Yii2
This problem happens when we don’t properly reference the path. In this case we only had to put the following reference in the configuration file return [ 'class' => 'yii\db\Connection',…
-
0
votes1
answer746
viewsQ: SQLSTATE[HY000]: General error: 1 no such table: when running Migration on SQLITE with Yii2
I am using yii2 for a small project, I am using sqlite to persist the data. And here is where the problem is occurring. Any table I create in sqlite yii2 does not recognize, nor does using GII to…
-
2
votes1
answer3620
viewsQ: Error: "Call to Undefined Function mysqli_init"
I am running a test with the codeigniter 3.1.5 framework and when trying to connect with the database it presents the following error: Fatal error: Call to Undefined Function mysqli_init() The…
-
4
votes4
answers829
viewsA: Compile-time type checking ADVPL
Gabriel, I don’t know any way to test types at the time of compilation in Advpl, the types are checked in the program’s Runtime same! With the Eclipse-based Totvs Developer Studio you get a better…
-
0
votes1
answer39
viewsA: A Model with 2 relationships but only 1 appears in the view
After a while testing I understood why I solved so,in medical controller I put the model name in plural when calling find method() $especialidades =…
-
0
votes1
answer39
viewsQ: A Model with 2 relationships but only 1 appears in the view
I have a model called doctor that belongs , to a city , and belongs to a specialty code : App::uses('AppModel', 'Model'); class Medico extends AppModel { public $belongsTo = array( 'Cidade' =>…
-
1
votes1
answer70
viewsQ: Bake cannot find model and controller files
I am using cakephp version 2.9, to make it easier I decided to leave all applications with a single core. So far everything ok, but when using Bake to be faster it does not find the…
-
0
votes2
answers711
viewsA: Jpa Hibernate merge error
Cara I believe that in his saveOrUpdate method something like testing to see if the contact already exists, to merge, because the merge is for something already in the bank. If it does not exist…
-
2
votes2
answers303
viewsA: query and change procedures for DAO C#layer
Mariana, To isolate the DAO layer implements the only handling methods follows one of a dll type project where has a connection method adds parameters, performs manipulation to call the procedures,…
-
1
votes1
answer320
viewsA: How to fix error Impossible to generate condition with Empty list of values for field (Tags.title)
So guys I think I was very anxious reading the Cookbook and I didn’t pay attention, the mistake is very basic. Next in the Bookmarkscontroller method public function tags(){ $tags=…
-
1
votes1
answer320
viewsQ: How to fix error Impossible to generate condition with Empty list of values for field (Tags.title)
I’m playing with cakephp 3 by doing the Cookbook bookmarker tutorial. I am implementing the action in the bookmarks/tags controller, but when trying to access the error of the question title:…
-
1
votes1
answer156
viewsA: How to update sql in visual studio 2015
Felipe, Your question was missing some data, like what version of Vsstudio do you use the name of the bank instance If the bank is Sqlexpress localdb as a service If localdb follows this solution…
-
1
votes2
answers2032
viewsA: How to connect an HTML page, using ASP, to the SQL Server database?
Gui Sartori, it is good to put some details that make the difference type: It’s classic Asp or Asp.net SQL which is version 2008, 2012 If Asp classico follows '<% Dim conexao, stringConexao,…
-
0
votes3
answers717
viewsA: SQL - Return zeroed records
Opa Caio, Face only a doubt is a normal query or this in a View? Sure you can do the CASE Follow an example excerpt in Protheus in table SC6 CASE WHEN C6_BLQ = ' ' THEN (SC6.C6_QTDVEN -…
-
1
votes1
answer87
views -
3
votes1
answer4634
viewsQ: How to change an SQL Server View
I have some Views on Sql Server that were implemented by other people ,but they didn’t leave any documentation or scripts, I believe it is possible to access to change and maintain them? But I don’t…
-
2
votes2
answers158
viewsA: Views with php transition with the controller
Luan, You studying MVC without any right market framework? To be able to understand how works and improve your way of programming, when studying with PHP I made a project of a Phonebook using MVC…