[DDC-2144] PersistentCollection Criteria IS NULL not behaving as expected Created: 14/Nov/12  Updated: 14/Nov/12  Resolved: 14/Nov/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.3
Fix Version/s: 2.3.1

Type: Bug Priority: Major
Reporter: Aitor Suso Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 0
Labels: None


 Description   

When using the matching method of a persistentCollection with a Criteria that contains a call to isNull, the SQL generated contains "field = null" instead of "field IS null"



 Comments   
Comment by Aitor Suso [ 14/Nov/12 ]

Seen that the code is fixed in the 2.3 branch, but it isn't in the last stable release (2.3.0)





[DDC-2121] EntityGenerator generates bad type hint (missing \) Created: 04/Nov/12  Updated: 09/Nov/12  Resolved: 06/Nov/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: Tools
Affects Version/s: 2.1, 2.2, 2.3
Fix Version/s: 2.3.1

Type: Bug Priority: Minor
Reporter: St├ęphane Erard Assignee: Fabio B. Silva
Resolution: Fixed Votes: 0
Labels: None


 Description   

Having an Entity class with this property declaration :

/**
 * @ORM\OneToMany(targetEntity="Plan", mappedBy="Dossier")
 * @var Plan[]
 **/
protected $Plans;

Getter & Setter are generated this way :

/**
 * Add Plans
 *
 * @param se\JpsBundle\Entity\Plan $plans
 * @return Dossier
 */
public function addPlan(\se\JpsBundle\Entity\Plan $plans)
{
  $this->Plans[] = $plans;
  return $this;
}

Problem lies in the

@param se\JpsBundle\Entity\Plan $plans

Should be :

\se\JpsBundle\Entity\Plan $plans

Same thing for Doctrine Collection class.



 Comments   
Comment by Fabio B. Silva [ 06/Nov/12 ]

Fixed : https://github.com/doctrine/doctrine2/commit/262c3eea6bd4313d34558ff434bf9b8ff34b7ab3





Generated at Wed Sep 02 06:34:12 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.