Questions tagged as 'doctrine'

2
answers

preg_match ('/ ^ \ d * $ /', $ nr_procedure)? 'f': 't'; - what are you doing ? php

I have this ( preg_match('/^\d*$/', $nr_procedimento) ? 'f' : 't'; ) in a code, but I have no idea what it does, more precisely the preg_match('/^\d*$/' part. Anyone know?     
asked by 10.04.2015 / 20:24
2
answers

Semantical Error - Doctrine createQueryBuilder

But once I get caught using doctrine usage. I wanted to do this: SELECT c.nm_computador, c.te_ip_computador, log.usuario, log.data FROM computador c INNER JOIN log_user_logado log ON c.id_computador = log.id_computador; But I do this:...
asked by 07.11.2014 / 18:32
1
answer

Error date Laravel

I'm trying to get the values from the database and display on the screen, however it gives me the following error message: ErrorException in helpers.php line 531: htmlentities() expects parameter 1 to be string, object given (View: /var/www/re...
asked by 11.04.2017 / 19:18
2
answers

Select specific columns from a repository in Doctrine 2

First, we know that depending on the number of columns in a query, you can increase response time. In Doctrine I call the following repository, which has a relationship and which brings all the columns of both entities. public function inde...
asked by 31.12.2014 / 18:25
1
answer

error with ORM Mapping no doctrine 2

I am mapping the database with doctrine and am having a problem. When I use Annotations the following way works perfectly: /** * @Entity * @Table(name="customer",uniqueConstraints={@UniqueConstraint(name="email", columns={"email"})}) */ cla...
asked by 04.12.2014 / 16:15
1
answer

Doubt about the doctrine \ dbal project structure

I read the Documentation the only thing I did not understand was as is the structure of it. I explain: My file composer.json in the project root { "require": { "doctrine/dbal": "2.4.*" } } When you run the command: p...
asked by 05.09.2014 / 22:54
1
answer

Doctrine 2 - Does not recognize class mapped with $ entityManager-getRepository ()

I'm going to be a little ... In my bootstrap.php file I'm trying to get the repository of a given entity and gives Fatal Error , stating that the Class does not exist, but it exists. Here is the error message: Fatal error: Uncaugh...
asked by 02.07.2014 / 14:39
1
answer

Doctrine prepare-execute

Hello, I'm doing this query with Doctrine $retorno = $em->getConnection()->prepare(" SELECT t.id_programa_fidelidade_diario, t.loja, t.nota, t.data, t.ecf, t.operador, o.nom...
asked by 12.03.2018 / 21:50
1
answer

Date with value reset Doctrine

Good afternoon, I am using doctrine in my laravel project to control the bank. I'm trying to insert a date but it does not return any value. If I use $ _ POST I can see the value. Save function: public function salvar(Request $reque...
asked by 07.04.2017 / 21:42
1
answer

Use the like in findby method to filter records?

I have the following code in my controller: $shares = $this ->getDoctrine() ->getRepository('AppBundle:Shares') ->findBy( $where, $orderBy, $paginator->getPerPage(), $paginator->getCur...
asked by 10.05.2016 / 16:10