Issue Details (XML | Word | Printable)

Key: MODM-19
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Jonathan H. Wage
Reporter: Rabbit
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Doctrine MongoDB ODM

Field annotation missing "name" support

Created: 21/Jun/10 04:06 PM   Updated: 19/Jul/10 03:51 PM
Component/s: Mapping Drivers
Affects Version/s: 1.0.0ALPHA1
Fix Version/s: 1.0.0ALPHA2


 Description  « Hide
Documentation states that field names can be overriden by using a "name" parameter but Doctrine throws exception.
Also there is a missing comma in the documentation between the type and name params.

From documentation:

http://www.doctrine-project.org/projects/mongodb_odm/1.0/docs/reference/annotations-reference/en#ann_field

Unable to find source-code formatter for language: php. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
/**
 * @Field(type="string" name="origin")
 */
protected $country;

My source code:

Unable to find source-code formatter for language: php. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
/**
     * @Field(type="string", name="password")
    **/
    protected $_password;

Exception:

BadMethodCallException:
Unknown property 'name' on annotation 'Doctrine\ODM\MongoDB\Mapping\Field'.



 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.