Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
3 votes
0 answers
327 views

For starters, it is NOT a duplicate of Doctrine 2 JOIN ON error. I am indeed getting Expected end of string, got 'ON' but using WITH won't solve my case. The problem there is similar but different ...
KotBehemot's user avatar
3 votes
2 answers
439 views

We use doctrine 2 and want to write parameterised code like this: attributes @> \'{' . $con->quote($attrId) . ':' . (int)$value . '}\''; to have a query like this: WHERE attributes @>'{"...
7cart project's user avatar
1 vote
1 answer
2k views

I am trying to set a default value for an UUID type field /** * @var int * * @ORM\Column(name="uuid", type="guid", options={"default"="uuid_generate_v4()"}) * @ORM\Id() * @ORM\GeneratedValue(...
Evren Yurtesen's user avatar
16 votes
1 answer
10k views

I have postgreSQL table with city list (>1M) and I need to search over this table by pattern like 'abc%'. I created B-tree index on city.name column, and here is what i got: EXPLAIN SELECT * FROM ...
Eddie's user avatar
  • 1,683
2 votes
1 answer
2k views

How to use Postgres date_trunc(text, timestamp) function with Doctrine 2 in Symfony?
Guido Lodetti's user avatar
1 vote
1 answer
355 views

I want to use the query_builder in a Symfony2 FormType, I tried to make a simple request in my Postgresql shema using Doctrine DQL. It return me an error and i don't really understand how fix it : ...
Boninir's user avatar
  • 15
1 vote
5 answers
8k views

I'm building a function for filter some records based on four parameters: $codigo, $anno, $term and $comite_tecnico. This is what I build until now: public function filtrarNorma($codigo = null, $anno ...
ReynierPM's user avatar
  • 18.7k
2 votes
1 answer
139 views

I have 3 entities . "Ejuridique" has 1 relation "onetomany" with . "Project" has 1 relation "onetomany" with . "Photo" When I do 1 query on "Ejuridique" and cascading left join on "Project" ...
Christian Lemaire's user avatar
5 votes
3 answers
3k views

When updating schema, doctrine always drops and add constraints. I think, it is something wrong... php app/console doctrine:schema:update --force Updating database schema... Database schema updated ...
sampleNull's user avatar
11 votes
1 answer
2k views

I'm guessing this is a Doctrine bug (and I've submitted an issue on JIRA issue tracker), but in case it's just user error I decided to post it here. SYNOPSIS Persisting a collection of entities in a ...
dyelawn's user avatar
  • 770
2 votes
2 answers
2k views

I'm trying to use Doctrine DBAL in my project; my database is Postgresql. This is a simple use case and I really do not know why is this not working. $query = "SELECT * FROM table ORDER BY field :...
Kamil's user avatar
  • 221
1 vote
1 answer
5k views

im getting this error while trying to insert an entity in symfony2 with doctrine2, /** * Moneda * * @ORM\Table(name="moneda") * @ORM\Entity */ class Moneda { /** * @var integer *...
metalvarez's user avatar