-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix applying target column options on foreign key columns #6833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ public function __construct(array $resultSet) | |
* | ||
* @return array | ||
*/ | ||
public function fetchAll($fetchStyle = null, $columnIndex = null, array $ctorArgs = null) | ||
public function fetchAll($fetchStyle = null, $columnIndex = null, $ctorArgs = null) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why was all those unrelated stuff changed? |
||
{ | ||
return $this->_resultSet; | ||
} | ||
|
@@ -53,7 +53,7 @@ public function fetchColumn($columnNumber = 0) | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function fetch($fetchStyle = null) | ||
public function fetch($fetchStyle = null, $cursorOrientation = \PDO::FETCH_ORI_NEXT, $cursorOffset = 0) | ||
{ | ||
$current = current($this->_resultSet); | ||
next($this->_resultSet); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
class ForumCategory | ||
{ | ||
/** | ||
* @Column(type="integer") | ||
* @Column(type="guid", options={"fixed":true, "collation":"latin1_bin", "foo":"bar"}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. guid might not be a string so applying fixed or collation might not make sense in this case. maybe just use a string simply. |
||
* @Id | ||
*/ | ||
private $id; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it makes sense to copy the column comment from the PK to the foreign key. So that should probably be excluded, but makes it kinda more ugly.